Selaa lähdekoodia

[BrowserKit] fixed test

Fabien Potencier 15 vuotta sitten
vanhempi
commit
f8e2c3b945
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      tests/Symfony/Tests/Components/BrowserKit/CookieJarTest.php

+ 1 - 1
tests/Symfony/Tests/Components/BrowserKit/CookieJarTest.php

@@ -67,7 +67,7 @@ class CookieJarTest extends \PHPUnit_Framework_TestCase
     $cookieJar->updateFromResponse($response);
 
     $this->assertEquals('foo', $cookieJar->get('foo')->getValue(), '->updateFromResponse() updates cookies from a Response objects');
-    $this->assertNull($cookieJar->get('bar'), '->updateFromResponse() updates cookies from a Response objects');
+    $this->assertEquals('bar', $cookieJar->get('bar')->getValue(), '->updateFromResponse() keeps existing cookies');
   }
 
   /**