示例#1
0
 public function testConstruct()
 {
     $actionLimit = new CM_Model_ActionLimit_AbstractMock($this->_actionType, $this->_actionVerb);
     $this->assertEquals(3, $actionLimit->getType(), 'type not mocked');
     $this->assertSame($this->_type, $actionLimit->getType());
     $this->assertSame($this->_actionType, $actionLimit->getActionType());
     $this->assertSame($this->_actionVerb, $actionLimit->getActionVerb());
     $this->assertEquals(2, $actionLimit->getLimit($this->_role));
     $this->assertEquals(3, $actionLimit->getPeriod($this->_role));
 }