You are here

public function OgAdminRoutesControllerTest::testRoutesWithAccess in Organic groups 8

Tests overview with accessible routes.

@covers ::overview

File

tests/src/Unit/OgAdminRoutesControllerTest.php, line 195

Class

OgAdminRoutesControllerTest
Tests the OG admin routes overview route.

Namespace

Drupal\Tests\og\Unit

Code

public function testRoutesWithAccess() {
  $result = $this
    ->getRenderElementResult(TRUE);
  foreach ($result['og_admin_routes']['#content'] as $key => $value) {
    $this
      ->assertEquals($this->routesInfo[$key]['title'], $value['title']);
    $this
      ->assertEquals($this->routesInfo[$key]['description'], $value['description']);
  }
}