All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
\AKlump\DrupalTest\Utilities\TimeTrait
for E2E tests.WaitForObserver()
should now receive a single object, an instance of \AKlump\DrupalTest\Utilities\DisplayObjectInterface
; for the balloon you should pass in instance of \AKlump\DrupalTest\Utilities\Balloon
WaitForObserver()
WaitForObserverPopup()
; simply replace all calls to this method from tests with WaitForObserver()
.testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
with testSuiteLoaderClass="PHPUnit\Runner\StandardTestSuiteLoader"
in your phpunit.xml file.getDrupalCommandsClient
is no longer static.getXmlClient
is no longer static.getHtmlClient
is no longer static.getJsonClient
is no longer static.emptyCookieJar
is no longer static.assertHttpStatusCodeAtUrl
renamed to assertUrlStatusCodeEquals
.assertContentType
has been replaced with assertUrlContentTypeEquals
.\AKlump\DrupalTest\BrowserTestCase::el()
. You must pass false
as the second argument to avoid an exception when $css_selector
finds more than one node.AKlump\DrupalTest\UnitTestCase
with AKlump\DrupalTest\Drupal7\UnitTestBase
; notice Case
turns to Base
to match with Drupal 8.AKlump\DrupalTest\KernelTestCase
with AKlump\DrupalTest\Drupal7\KernelTestBase
\AKlump\DrupalTest\ClientTestCase
with \AKlump\DrupalTest\ClientTestCase
\AKlump\DrupalTest\EndToEndTestCase
with \AKlump\DrupalTest\EndToEndTestCase
self::FULL_MOCK
with EasyMock::FULL
self::PARTIAL_MOCK
with EasyMock::PARTIAL
self::VALUE
with EasyMock::VALUE
./bin/update.sh
twice to ensure a proper update.Before:
$el = $this->assert()
->pageTextContains('Thank you for joining')
->getDomElements([
'.t-educator-status__false',
'.t-educator-status__true',
]);
After, in 0.2.6 onward
$this->assert()->pageTextContains('Thank you for joining');
$el = $this->getDomElements([
'.t-educator-status__false',
'.t-educator-status__true',
]);
You should manually update composer.json with the following require
:
"aklump/manual-test": "^1.2.1",
TestClass::$schema
has been replaced with TestClass::getSchema()
.