Skip to content

Commit dea6782

Browse files
committed
renamed FrontPageLinkBonusPointsTest to FrontPageLinkDependenciesTest, use createUser() instead of drupalCreateUser()
1 parent 0ca88a3 commit dea6782

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

testing_example/tests/src/Functional/FrontPageLinkBonusPointsTest.php testing_example/tests/src/Functional/FrontPageLinkDependenciesTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @see Drupal\Tests\testing_example\Functional\FrontPageLinkTest
2222
*/
23-
class FrontPageLinkBonusPointsTest extends BrowserTestBase {
23+
class FrontPageLinkDependenciesTest extends BrowserTestBase {
2424

2525
/**
2626
* {@inheritdoc}
@@ -55,7 +55,7 @@ protected function setUp() {
5555
public function testAddContentMenuItem() {
5656
// Step 1: Log in a user who can add content.
5757
$this->drupalLogin(
58-
$this->drupalCreateUser([
58+
$this->createUser([
5959
'create ' . $this->contentType->id() . ' content',
6060
])
6161
);

testing_example/tests/src/Functional/FrontPageLinkTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @group testing_example
1313
*
14-
* @see Drupal\Tests\testing_example\Functional\FrontPageLinkBonusPointsTest
14+
* @see Drupal\Tests\testing_example\Functional\FrontPageLinkDependenciesTest
1515
*/
1616
class FrontPageLinkTest extends BrowserTestBase {
1717

0 commit comments

Comments
 (0)