public function getTableSelectionMock()
 {
     return $this->mockista->create('Nette\\Database\\Table\\Selection', array('accessColumn' => true, 'getDataRefreshed' => false, 'getPrimary' => 'id'));
 }
Exemple #2
0
 protected function tearDown()
 {
     $this->mockista->assertExpectations();
 }
Exemple #3
0
 /**
  * @expectedException Mockista\MockException
  * @expectedMessage   Unexpected call in mock Test::getName()
  */
 function testFreezeMockExceptionOnUndefinedMethod()
 {
     $mock = $this->object->create("Mockista\\A");
     $mock->freeze();
     $this->assertEquals("Test", $mock->getName());
 }