/** * @test */ public function canAccessBadIdentifier() { $this->_getRule(60, 'feature'); $this->assertFalse($this->_rule->canAccess(['balhblah' => '4'])); }
/** * @test */ public function canAccessFalse() { $this->_getRule(60, 'feature'); $this->_rule->expects($this->once())->method('_getRandomIdentifier')->willReturn(4); $this->assertFalse($this->_rule->canAccess()); }