Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function tryToTestDealershipsSearch(ElasticTester $I)
- {
- $I->sendGET(self::BASE_URL, $this->validData);
- $I->seeResponseCodeIs(self::HTTP_CODE_OK);
- $I->seeResponseContainsJson([
- 'meta' => [
- 'total' => 1,
- 'count' => 1,
- 'perPage' => 30,
- 'currentPage' => 1,
- ],
- 'data' => [
- [
- 'type' => 'dealerships',
- 'id' => '1',
- 'attributes' => [
- 'id' => '1',
- 'name' => 'First test dealer',
- 'logo_url' => null,
- 'address' => 'Test Address, Goree, TX, 76363',
- 'sales_phone' => '1234567890',
- 'service_phone' => '9812736454',
- 'brands' => [],
- 'status' => 'active',
- 'location' => [
- 'lat' => '33.47595200',
- 'lon' => '-99.55182500',
- ],
- 'deleted_at' => null,
- 'user_id' => null,
- 'distance' => 6768.1172277488095,
- 'programs' => [
- 'photos_program'
- ],
- 'special_programs' => ['autocheck'],
- 'city' => 'Goree',
- 'state' => 'TX',
- 'zip_code' => '76363',
- 'bad_credit' => [],
- 'created_at' => null,
- 'updated_at' => null,
- 'phone' => '1234567890',
- ],
- ],
- ],
- ]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement