Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
tour.module
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2017 at 13:08 UTC
Updated:
4 Jan 2018 at 10:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottHere's a patch. The test-only patch (unlike most) should be green. Attaching it to show the assumptions the TestBase class makes are not changed by the change to the class.
Comment #3
alexpottOops missed the @group.
Comment #4
martin107 commentedI have looked over this .. all seems correct and well reasoned.
I will lurk on this issue and come back when tests are passing to RTBC this...
I can see the smallest of small nits
+ * @code
+ * protected $tips = array(
+ * '/foo/bar' => array(
+ * 'data-id' => 'foo',
+ * 'data-class' => 'bar',
+ * ),
+ * );
+ * @endcode
The example code contains examples of array() when [] is prefered.
Comment #8
alexpott@martin107 this is a cut-and-paste job from \Drupal\Tests\tour\Functional\TourTestBasic - and the code snippet there is incorrect - but the class we're really aping is \Drupal\Tests\tour\Functional\TourTest so I've just copied the docs from there. Bear in mind that this is totally deprecated code and only exists to test the deprecated TourTestBase class so it definitely has a finite shelf life and also this test is not an extension point so the docs are pointless.
Comment #10
alexpottComment #11
martin107 commentedI think this is a good change....
Comment #13
catchCommitted 93b9f58 and pushed to 8.5.x. Thanks!