partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 71f31621462a48ed9f8e64163c0d02b9cefbdb20
parent 8c0be9e0bca0ffcce91af2c7803207212267fad2
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed, 23 Sep 2015 17:25:15 +0200

Removed unused fixtures property, dump content of the response if failure

Diffstat:
Msrc/PartKeepr/AuthBundle/Tests/UserPreferenceTest.php | 10++--------
1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/PartKeepr/AuthBundle/Tests/UserPreferenceTest.php b/src/PartKeepr/AuthBundle/Tests/UserPreferenceTest.php @@ -2,19 +2,13 @@ namespace PartKeepr\AuthBundle\Tests; -use Doctrine\Common\DataFixtures\ProxyReferenceRepository; use Liip\FunctionalTestBundle\Test\WebTestCase; class UserPreferenceTest extends WebTestCase { - /** - * @var ProxyReferenceRepository - */ - private $fixtures; - public function setUp() { - $this->fixtures = $this->loadFixtures( + $this->loadFixtures( array( 'PartKeepr\AuthBundle\DataFixtures\LoadUserData', ) @@ -41,7 +35,7 @@ class UserPreferenceTest extends WebTestCase $response = json_decode($client->getResponse()->getContent()); - $this->assertInternalType("object", $response, var_export($response, true)); + $this->assertInternalType("object", $response, var_export($client->getResponse()->getContent(), true)); $this->assertObjectHasAttribute("preferenceKey", $response); $this->assertObjectHasAttribute("preferenceValue", $response);