protected function setUp():void
{ parent::
setUp();
$this->connection =
$this->
createMock(Connection::
class);
$this->state =
$this->
createMock(State::
class);
} /**
* Tests the constructor deprecations.
*/
public function testConstructorDeprecationNoLogger() { $this->
expectDeprecation('Calling Drupal\Core\Routing\MatcherDumper::__construct() without the $logger argument is deprecated in drupal:10.1.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/2932520'
);
$dumper =
new MatcherDumper($this->connection,
$this->state
);
$this->
assertNotNull($dumper);
} /**
* Tests the constructor deprecations.
*/
public function testConstructorDeprecationWithLegacyTableNameParam() { $this->
expectDeprecation('Calling Drupal\Core\Routing\MatcherDumper::__construct() without the $logger argument is deprecated in drupal:10.1.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/2932520'
);
$dumper =
new MatcherDumper($this->connection,
$this->state, 'foo'
);
$this->
assertNotNull($dumper);
}