Commit 1b1c1543 authored by Okhin's avatar Okhin

Data are now aligned

parent 3de54412
Pipeline #2035 failed with stages
in 45 minutes and 28 seconds
......@@ -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']);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment