You are here

public function GeolocationViewsProximityByEntityTest::testEmpty in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/GeolocationViewsProximityByEntityTest.php \Drupal\Tests\geolocation\Functional\GeolocationViewsProximityByEntityTest::testEmpty()
  2. 8 tests/src/Functional/GeolocationViewsProximityByEntityTest.php \Drupal\Tests\geolocation\Functional\GeolocationViewsProximityByEntityTest::testEmpty()

Tests the proximity sort.

File

tests/src/Functional/GeolocationViewsProximityByEntityTest.php, line 29

Class

GeolocationViewsProximityByEntityTest
Tests the proximity views sort.

Namespace

Drupal\Tests\geolocation\Functional

Code

public function testEmpty() {
  $this
    ->drupalGet('geolocation-demo/proximity-by-entity-id/');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->responseNotContains('Closest Node');
  $this
    ->assertSession()
    ->responseNotContains('130.18');
}