Assert lat/long is displayed on list
This commit is contained in:
parent
8ad0280b86
commit
408d9f944c
2 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ final class RestaurantFactory extends PersistentObjectFactory
|
|||
{
|
||||
return [
|
||||
'name' => self::faker()->company(),
|
||||
'latitude' => self::faker()->latitude(),
|
||||
'longitude' => self::faker()->longitude(),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,10 @@ class SubjectControllerTest extends WebTestCase
|
|||
$data = json_decode($client->getResponse()->getContent(), true);
|
||||
$this->assertResponseIsSuccessful();
|
||||
$this->assertCount(5, $data['payload']['subjects']);
|
||||
|
||||
$subject = $data['payload']['subjects'][0];
|
||||
$this->assertNotNull($subject['latitude']);
|
||||
$this->assertNotNull($subject['longitude']);
|
||||
}
|
||||
|
||||
public function testCreate(): void
|
||||
|
|
|
|||
Loading…
Reference in a new issue