PhpBench\Tests\Unit\Console\Command\UpdateCommandTest::testUpdateRollback PHP Method

testUpdateRollback() public method

It should rollback.
public testUpdateRollback ( )
    public function testUpdateRollback()
    {
        $input = new ArrayInput(['--rollback' => true], $this->command->getDefinition());
        $this->updater->rollback()->shouldBeCalled()->willReturn(true);
        $this->command->execute($input, $this->output);
        $this->assertContains('Successfully rolled back', $this->output->fetch());
    }