jonnybarnes.uk/tests/Unit/PlacesTest.php

23 lines
478 B
PHP
Raw Normal View History

2017-02-18 14:31:49 +00:00
<?php
namespace Tests\Unit;
use App\Place;
use Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class PlacesTest extends TestCase
{
/**
* Test the near method returns a collection.
*
* @return void
*/
public function test_near_method()
{
$nearby = Place::near(53.5, -2.38, 1000);
$this->assertEquals('the-bridgewater-pub', $nearby[0]->slug);
}
}