mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
PHPunit deprecations
This commit is contained in:
parent
be83e2afa8
commit
52817facf6
@ -25,22 +25,18 @@ class SilverStripeContextTest extends TestCase
|
|||||||
SapphireTest::start();
|
SapphireTest::start();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @expectedException \LogicException
|
|
||||||
* @expectedExceptionMessage Cannot find 'region_map' in the behat.yml
|
|
||||||
*/
|
|
||||||
public function testGetRegionObjThrowsExceptionOnUnknownSelector()
|
public function testGetRegionObjThrowsExceptionOnUnknownSelector()
|
||||||
{
|
{
|
||||||
|
$this->expectException(\LogicException::class);
|
||||||
|
$this->expectExceptionMessage('Cannot find \'region_map\' in the behat.yml');
|
||||||
$context = $this->getContextMock();
|
$context = $this->getContextMock();
|
||||||
$context->getRegionObj('.unknown');
|
$context->getRegionObj('.unknown');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @expectedException \LogicException
|
|
||||||
* @expectedExceptionMessage Cannot find the specified region in the behat.yml
|
|
||||||
*/
|
|
||||||
public function testGetRegionObjThrowsExceptionOnUnknownRegion()
|
public function testGetRegionObjThrowsExceptionOnUnknownRegion()
|
||||||
{
|
{
|
||||||
|
$this->expectException(\LogicException::class);
|
||||||
|
$this->expectExceptionMessage('Cannot find the specified region in the behat.yml');
|
||||||
$context = $this->getContextMock();
|
$context = $this->getContextMock();
|
||||||
$context->setRegionMap(array('MyRegion' => '.my-region'));
|
$context->setRegionMap(array('MyRegion' => '.my-region'));
|
||||||
$context->getRegionObj('.unknown');
|
$context->getRegionObj('.unknown');
|
||||||
|
Loading…
Reference in New Issue
Block a user