Initial commit
This commit is contained in:
commit
e1517ecd9d
36 changed files with 2093 additions and 0 deletions
step1-first-test
5
step1-first-test/my_module.info.yml
Normal file
5
step1-first-test/my_module.info.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
name: My Module
|
||||
type: module
|
||||
core: 8.x
|
||||
core_version_requirement: ^8 || ^9
|
||||
package: Custom
|
19
step1-first-test/tests/src/Functional/MyModuleTest.php
Normal file
19
step1-first-test/tests/src/Functional/MyModuleTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue