Loading core/.phpstan-baseline.php +0 −12 Original line number Diff line number Diff line Loading @@ -63327,18 +63327,6 @@ 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Block/BlockBaseTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Block\\\\BlockManagerTest\\:\\:formatPlural\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Block/BlockManagerTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Block\\\\BlockManagerTest\\:\\:getNumberOfPlurals\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Block/BlockManagerTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Cache\\\\CacheCollectorHelper\\:\\:set\\(\\) has no return type specified\\.$#', core/modules/block/tests/src/Traits/BlockCreationTrait.php +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ trait BlockCreationTrait { * example: * @code * $this->drupalPlaceBlock('system_powered_by_block', [ * 'label' => t('Hello, world!'), * 'label' => 'Hello, world!', * ]); * @endcode * The following defaults are provided: Loading core/modules/block_content/tests/src/Functional/BlockContentListTest.php +2 −3 Original line number Diff line number Diff line Loading @@ -180,12 +180,11 @@ public function testListing(): void { // Create test block for other user tests. $test_block = $this->createBlockContent($label); $link_text = t('Add content block'); // Test as a user with view only permissions. $this->drupalLogin($this->baseUser1); $this->drupalGet('admin/content/block'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->linkNotExists($link_text); $this->assertSession()->linkNotExists('Add content block'); $this->assertSession()->linkByHrefNotExists('admin/content/block/' . $test_block->id()); $this->assertSession()->linkByHrefNotExists('admin/content/block/' . $test_block->id() . '/delete'); Loading @@ -195,7 +194,7 @@ public function testListing(): void { $this->drupalLogin($this->baseUser2); $this->drupalGet('admin/content/block'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->linkExists($link_text); $this->assertSession()->linkExists('Add content block'); $this->assertSession()->linkByHrefExists('admin/content/block/' . $test_block->id()); $this->assertSession()->linkByHrefExists('admin/content/block/' . $test_block->id() . '/delete'); } Loading core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php +2 −3 Original line number Diff line number Diff line Loading @@ -175,12 +175,11 @@ public function testListing(): void { // Create test block for other user tests. $test_block = $this->createBlockContent($label); $link_text = t('Add content block'); // Test as a user with view only permissions. $this->drupalLogin($this->baseUser1); $this->drupalGet('admin/content/block'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->linkNotExists($link_text); $this->assertSession()->linkNotExists('Add content block'); $matches = $this->xpath('//td[1]'); $actual = $matches[0]->getText(); $this->assertEquals($label, $actual, 'Label found for test block.'); Loading @@ -194,7 +193,7 @@ public function testListing(): void { $this->drupalLogin($this->baseUser2); $this->drupalGet('admin/content/block'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->linkExists($link_text); $this->assertSession()->linkExists('Add content block'); $matches = $this->xpath('//td/a'); $actual = $matches[0]->getText(); $this->assertEquals($label, $actual, 'Label found for test block.'); Loading core/modules/block_content/tests/src/Kernel/BlockContentTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ public function testOperationLinks(): void { // The admin user does have the "administer block" permission. $this->assertEquals([ 'block-edit' => [ 'title' => $this->t('Edit block'), 'title' => 'Edit block', 'url' => $block_content->toUrl('edit-form')->setOptions([]), 'weight' => 50, ], Loading Loading
core/.phpstan-baseline.php +0 −12 Original line number Diff line number Diff line Loading @@ -63327,18 +63327,6 @@ 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Block/BlockBaseTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Block\\\\BlockManagerTest\\:\\:formatPlural\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Block/BlockManagerTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Block\\\\BlockManagerTest\\:\\:getNumberOfPlurals\\(\\) has no return type specified\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Block/BlockManagerTest.php', ]; $ignoreErrors[] = [ // identifier: missingType.return 'message' => '#^Method Drupal\\\\Tests\\\\Core\\\\Cache\\\\CacheCollectorHelper\\:\\:set\\(\\) has no return type specified\\.$#',
core/modules/block/tests/src/Traits/BlockCreationTrait.php +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ trait BlockCreationTrait { * example: * @code * $this->drupalPlaceBlock('system_powered_by_block', [ * 'label' => t('Hello, world!'), * 'label' => 'Hello, world!', * ]); * @endcode * The following defaults are provided: Loading
core/modules/block_content/tests/src/Functional/BlockContentListTest.php +2 −3 Original line number Diff line number Diff line Loading @@ -180,12 +180,11 @@ public function testListing(): void { // Create test block for other user tests. $test_block = $this->createBlockContent($label); $link_text = t('Add content block'); // Test as a user with view only permissions. $this->drupalLogin($this->baseUser1); $this->drupalGet('admin/content/block'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->linkNotExists($link_text); $this->assertSession()->linkNotExists('Add content block'); $this->assertSession()->linkByHrefNotExists('admin/content/block/' . $test_block->id()); $this->assertSession()->linkByHrefNotExists('admin/content/block/' . $test_block->id() . '/delete'); Loading @@ -195,7 +194,7 @@ public function testListing(): void { $this->drupalLogin($this->baseUser2); $this->drupalGet('admin/content/block'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->linkExists($link_text); $this->assertSession()->linkExists('Add content block'); $this->assertSession()->linkByHrefExists('admin/content/block/' . $test_block->id()); $this->assertSession()->linkByHrefExists('admin/content/block/' . $test_block->id() . '/delete'); } Loading
core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php +2 −3 Original line number Diff line number Diff line Loading @@ -175,12 +175,11 @@ public function testListing(): void { // Create test block for other user tests. $test_block = $this->createBlockContent($label); $link_text = t('Add content block'); // Test as a user with view only permissions. $this->drupalLogin($this->baseUser1); $this->drupalGet('admin/content/block'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->linkNotExists($link_text); $this->assertSession()->linkNotExists('Add content block'); $matches = $this->xpath('//td[1]'); $actual = $matches[0]->getText(); $this->assertEquals($label, $actual, 'Label found for test block.'); Loading @@ -194,7 +193,7 @@ public function testListing(): void { $this->drupalLogin($this->baseUser2); $this->drupalGet('admin/content/block'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->linkExists($link_text); $this->assertSession()->linkExists('Add content block'); $matches = $this->xpath('//td/a'); $actual = $matches[0]->getText(); $this->assertEquals($label, $actual, 'Label found for test block.'); Loading
core/modules/block_content/tests/src/Kernel/BlockContentTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ public function testOperationLinks(): void { // The admin user does have the "administer block" permission. $this->assertEquals([ 'block-edit' => [ 'title' => $this->t('Edit block'), 'title' => 'Edit block', 'url' => $block_content->toUrl('edit-form')->setOptions([]), 'weight' => 50, ], Loading