function WebAssertArgumentsTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Assert/ WebAssertArgumentsTest.php, line 49
Class
- WebAssertArgumentsTest
- Tests that calling WebAssert methods with extra arguments leads to errors.
Namespace
Drupal\Tests\Core\AssertCode
public function setUp() : void {
parent::setUp();
$this->page = $this->prophesize(DocumentElement::class);
$this->session = $this->prophesize(Session::class);
$this->session
->getPage()
->willReturn($this->page
->reveal());
$this->webAssert = new WebAssert($this->getSession());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.