Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. public function tryToTestDealershipsSearch(ElasticTester $I)
  2. {
  3. $I->sendGET(self::BASE_URL, $this->validData);
  4. $I->seeResponseCodeIs(self::HTTP_CODE_OK);
  5. $I->seeResponseContainsJson([
  6. 'meta' => [
  7. 'total' => 1,
  8. 'count' => 1,
  9. 'perPage' => 30,
  10. 'currentPage' => 1,
  11. ],
  12. 'data' => [
  13. [
  14. 'type' => 'dealerships',
  15. 'id' => '1',
  16. 'attributes' => [
  17. 'id' => '1',
  18. 'name' => 'First test dealer',
  19. 'logo_url' => null,
  20. 'address' => 'Test Address, Goree, TX, 76363',
  21. 'sales_phone' => '1234567890',
  22. 'service_phone' => '9812736454',
  23.  
  24. 'brands' => [],
  25. 'status' => 'active',
  26. 'location' => [
  27. 'lat' => '33.47595200',
  28. 'lon' => '-99.55182500',
  29. ],
  30. 'deleted_at' => null,
  31. 'user_id' => null,
  32. 'distance' => 6768.1172277488095,
  33. 'programs' => [
  34. 'photos_program'
  35. ],
  36. 'special_programs' => ['autocheck'],
  37. 'city' => 'Goree',
  38. 'state' => 'TX',
  39. 'zip_code' => '76363',
  40. 'bad_credit' => [],
  41. 'created_at' => null,
  42. 'updated_at' => null,
  43. 'phone' => '1234567890',
  44. ],
  45. ],
  46. ],
  47. ]);
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement