Bolt\Tests\Nut\UserRoleRemoveTest::testRemove PHP Method

testRemove() public method

public testRemove ( )
    public function testRemove()
    {
        $app = $this->getApp();
        $app['users'] = $this->getUserMockWithReturns(true, true);
        $command = new UserRoleRemove($app);
        $tester = new CommandTester($command);
        $tester->execute(['username' => 'test', 'role' => 'admin']);
        $result = $tester->getDisplay();
        $this->assertRegExp('/no longer has role/', trim($result));
    }