Namespace
Drupal\Tests\rest_example\Funtional
File
-
modules/rest_example/tests/src/Functional/RestExampleMenuTest.php
View source
<?php
namespace Drupal\Tests\rest_example\Funtional;
use Drupal\Tests\BrowserTestBase;
class RestExampleMenuTest extends BrowserTestBase {
protected static $modules = [
'rest_example',
];
protected $profile = 'minimal';
public function testRestExampleLink() {
$this->drupalGet('');
$this->assertSession()
->linkByHrefExists('examples/rest-client-actions');
$this->assertSession()
->linkByHrefExists('examples/rest-client-settings');
}
public function testRestExampleMenu() {
$this->drupalGet('examples/rest-client-actions');
$this->assertSession()
->statusCodeEquals(200);
$this->drupalGet('examples/rest-client-settings');
$this->assertSession()
->statusCodeEquals(200);
}
}
Classes