Add 'Test Driven Drupal' slides
This commit is contained in:
parent
64dc136483
commit
6cf5e862ad
14 changed files with 576 additions and 0 deletions
13
test-driven-drupal/code/1-example-test.txt
Normal file
13
test-driven-drupal/code/1-example-test.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
// web/modules/custom/example/tests/src/Functional.
|
||||
|
||||
namespace Drupal\Tests\example\Functional;
|
||||
|
||||
use Drupal\Tests\BrowserTestBase;
|
||||
|
||||
class ExampleTest extends BrowserTestBase {
|
||||
|
||||
public function testSomething() {
|
||||
$this->assertTrue(FALSE);
|
||||
}
|
||||
|
||||
}
|
6
test-driven-drupal/code/2-test-methods.txt
Normal file
6
test-driven-drupal/code/2-test-methods.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
public function testSomething()
|
||||
|
||||
public function test_something()
|
||||
|
||||
/** @test */
|
||||
public function it_does_something()
|
Loading…
Add table
Add a link
Reference in a new issue