X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Foutside_in%2Ftests%2Fsrc%2FUnit%2FOutsideInManagerTest.php;fp=web%2Fcore%2Fmodules%2Foutside_in%2Ftests%2Fsrc%2FUnit%2FOutsideInManagerTest.php;h=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=b08851fc74463e5f23b51ac0f269a68ca6c3845f;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/outside_in/tests/src/Unit/OutsideInManagerTest.php b/web/core/modules/outside_in/tests/src/Unit/OutsideInManagerTest.php deleted file mode 100644 index b08851fc7..000000000 --- a/web/core/modules/outside_in/tests/src/Unit/OutsideInManagerTest.php +++ /dev/null @@ -1,57 +0,0 @@ -prophesize(AdminContext::class); - $admin_context->isAdminRoute()->willReturn($is_admin_route); - - $route_match = $this->prophesize(RouteMatchInterface::class); - $route_match->getRouteName()->willReturn($route_name); - - $account = $this->prophesize(AccountInterface::class); - $account->hasPermission('administer blocks')->willReturn($has_permission); - - $outside_in_manager = new OutsideInManager($admin_context->reveal(), $route_match->reveal(), $account->reveal()); - - $this->assertSame($expected, $outside_in_manager->isApplicable()); - } - - /** - * Data provider for ::testIsApplicable(). - */ - public function providerTestIsApplicable() { - $data = []; - - // Passing combination. - $data[] = [FALSE, 'the_route_name', TRUE, TRUE]; - - // Failing combinations. - $data[] = [TRUE, 'the_route_name', TRUE, FALSE]; - $data[] = [TRUE, 'the_route_name', FALSE, FALSE]; - $data[] = [TRUE, 'block.admin_demo', TRUE, FALSE]; - $data[] = [TRUE, 'block.admin_demo', FALSE, FALSE]; - $data[] = [FALSE, 'the_route_name', FALSE, FALSE]; - $data[] = [FALSE, 'block.admin_demo', TRUE, FALSE]; - $data[] = [FALSE, 'block.admin_demo', FALSE, FALSE]; - - return $data; - } - -}