diff --git a/tests/functional/Finder/CounterpartFinderTest.php b/tests/functional/Finder/CounterpartFinderTest.php index 45f90bc9ebc929f4ce65ac650ebb8c5a0292c4f2..4da31be8e192d11c5ced44a32a7ea644ea3076a8 100644 --- a/tests/functional/Finder/CounterpartFinderTest.php +++ b/tests/functional/Finder/CounterpartFinderTest.php @@ -12,7 +12,6 @@ class CounterpartFinderTest extends FunctionalTest $this->assertCount(1, $counterparts); $firstCounterpart = reset($counterparts); - $secondCounterpart = $counterparts[1]; // Check the first counterpart $expectedCounterpart = [ @@ -20,18 +19,18 @@ class CounterpartFinderTest extends FunctionalTest 'user_id' => '2', 'datec' => '2016-06-22 12:34:00', 'quoi' => 'piplome', - 'taille' => '8', + 'taille' => '1', 'status' => '1', 'adresse_id' => null, - 'pdf_id' => '8', + 'pdf_id' => '1', 'pdf_nom' => 'bob@example.org', 'pdf_url' => 'pdf', ]; $this->assertEquals($expectedCounterpart, $firstCounterpart); // Test the PDF attributes - $this->assertEquals(2, $secondCounterpart['pdf_id']); - $this->assertEquals('Bob', $secondCounterpart['pdf_nom']); - $this->assertEquals('http://example.org/pdf/2', $secondCounterpart['pdf_url']); + $this->assertEquals(2, $firstCounterpart['pdf_id']); + $this->assertEquals('Bob', $firstCounterpart['pdf_nom']); + $this->assertEquals('http://example.org/pdf/2', $firstCounterpart['pdf_url']); } }