public function WebAssertArgumentsTest::setUp in Drupal 9
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());
}