public function BricksTest::testBricks in Bricks 8
Same name in this branch
- 8 tests/src/Functional/BricksTest.php \Drupal\Tests\bricks\Functional\BricksTest::testBricks()
- 8 tests/src/Kernel/BricksTest.php \Drupal\Tests\bricks\Kernel\BricksTest::testBricks()
Same name and namespace in other branches
- 2.x tests/src/Functional/BricksTest.php \Drupal\Tests\bricks\Functional\BricksTest::testBricks()
Tests creating a brick.
File
- tests/
src/ Functional/ BricksTest.php, line 74
Class
- BricksTest
- Class BricksTest
Namespace
Drupal\Tests\bricks\FunctionalCode
public function testBricks() {
// Create a node.
$edit = [];
$edit['title[0][value]'] = 'Llamas are cool';
$edit['field_brick[0][target_id]'] = 'Camelid';
$this
->drupalPostForm("node/add/article", $edit, t('Save'));
$this
->assertText('Article Llamas are cool has been created.');
}