workshop-drupal-automated-t.../step5-wrapping-up-with-unit-tests/tests/src/Functional/MyModuleTest.php
2020-03-13 11:29:03 +00:00

19 lines
384 B
PHP

<?php
namespace Drupal\Tests\my_module\Functional;
use Drupal\Tests\BrowserTestBase;
use Symfony\Component\HttpFoundation\Response;
class MyModuleTest extends BrowserTestBase {
protected $defaultTheme = 'stark';
/** @test */
public function the_front_page_loads_for_anonymous_users() {
$this->drupalGet('<front>');
$this->assertResponse(Response::HTTP_OK);
}
}