/** * @covers JInstaller::abort */ public function testAbortDefault() { $adapterMock = $this->getMock('test', array('_rollback_testtype')); $adapterMock->expects($this->once())->method('_rollback_testtype')->with($this->equalTo(array('type' => 'testtype')))->will($this->returnValue(true)); $this->object->setAdapter('testadapter', $adapterMock); $this->object->pushStep(array('type' => 'testtype')); $this->assertThat($this->object->abort(null, 'testadapter'), $this->isTrue()); }