N98\Magento\Command\Developer\Module\Rewrite\ConflictsCommandTest::testExecuteConflict PHP Method

testExecuteConflict() public method

Magento doesn't have any conflicts out of the box, so we need to fake one
public testExecuteConflict ( )
    public function testExecuteConflict()
    {
        $rewrites = array('blocks' => array('n98/mock_conflict' => array('Mage_Customer_Block_Account', 'Mage_Tag_Block_All')));
        $command = $this->getCommandWithMockLoadRewrites($rewrites);
        $commandTester = new CommandTester($command);
        $result = $commandTester->execute(array('command' => $command->getName()));
        $this->assertNotEquals(0, $result);
        $this->assertContains('1 conflict was found', $commandTester->getDisplay());
    }