public function testRegistration() { $this->assertFalse($this->filterGroup->isRegistered()); $this->routingMock->expects($this->once())->method('filter'); $this->resolverMock->expects($this->once())->method('methodToClosure'); $this->filterGroup->register($this->routingMock, $this->resolverMock); $this->assertTrue($this->filterGroup->isRegistered()); }
/** * @param string $group */ protected function setCurrentGroup($group) { $this->router->expects($this->any())->method('currentRouteAction')->willReturn("Controller@{$group}"); }