Closed (cannot reproduce)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2013 at 07:23 UTC
Updated:
2 Dec 2015 at 06:54 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #1
ygerasimov commentedAttaching patch with test showing the error. It should fail.
Comment #3
benjy commentedThis bug seems to have been fixed elsewhere however we should still try get this test in.
Comment #4
benjy commented#1: core-2042879-demonstrate-block-regions-test.patch queued for re-testing.
Comment #5
benjy commentedHowever, the exit link is currently broken which this test should also catch: see #2056887: Exit block region demonstration link is broken.
Comment #7
tim.plunkett#1: core-2042879-demonstrate-block-regions-test.patch queued for re-testing.
Comment #9
jhedstromNamespaces have changed, so at a minimum #1 needs a reroll for that.
Comment #10
rpayanmI can't reproduce this bug, I follow the steps and no error.
Comment #11
jhedstromI think the remaining effort here was to get the test in, so the bug doesn't get reintroduced.
Comment #12
kerby70 commentedWorked on this but wasn't seeing it come into my testing list page, is there some autoloader trick? Maybe someone can help spot the issue.
Patch attached.
Comment #13
kerby70 commentedMaybe testbot will pick it up?
Comment #14
kerby70 commentedNope, not sure what I am missing.
Comment #15
tim.plunkettThis should have
@group blockafter a blank line, see \Drupal\block\Tests\BlockTest for an example.This is why it's not getting picked up.
You don't need a property for this, or even a variable.
$this->drupalLogin($this->drupalCreateUser(....));should be enough.This can be removed.
This should have {@inheritdoc} as a docblock
protected function setUp
public function testDemonstrateSeven
Tests 'Demonstrate block regions' page exists and functions correctly.Finally, since this is a new file it'd be nice to use [] instead of array() in all occurrences.
Comment #16
kerby70 commentedThanks @tim.plunkett.
Reroll based on #15.
Looks like \Drupal::service('theme_handler')->enable() changed to \Drupal::service('theme_handler')->install().
This might be a bug in \Drupal\simpletest\WebTestBase::clickLink()
I'm getting an odd error "Link Demonstrate block regions (Seven) does not exist on http://drupal8_2.dev/admin/structure/block/list/seven" while testing. Even though the link is definitely there and the text matches exactly.
Comment #17
kerby70 commentedComment #19
siva_epari commentedHelp module needs to be enabled & the help block's system name is help_block.
Also, as suggested in #15 removed:
+++ b/core/modules/block/src/Tests/BlockDemonstrateRegionsTest.php @@ -0,0 +1,68 @@ + public static function getInfo() { + return array( + 'name' => 'Block Demonstrate block regions', + 'description' => 'Tests functionality of "Demonstrate block regions".', + 'group' => 'Block', + ); + }Comment #20
siva_epari commentedComment #21
Trupti Bhosale commentedFollowed the steps to reproduce the issue, but the error is not displayed.The issue is not reproducible
Comment #22
rpayanmI agree @Truptti. I can't reproduce this issue.
I vote for "Close (cannot reproduce)".
Comment #23
joelpittetAs per #21 and #22