Pantheon\Terminus\UnitTests\Commands\Owner\SetCommandTest::testOwnerSetInvalidOwner PHP Method

testOwnerSetInvalidOwner() public method

Exercises owner:set when the proposed owner is not a team member
    public function testOwnerSetInvalidOwner()
    {
        $email = 'a-valid-email';
        $this->user_memberships->expects($this->once())->method('get')->with($this->equalTo($email))->will($this->throwException(new TerminusNotFoundException()));
        $this->site->expects($this->never())->method('setOwner');
        $this->logger->expects($this->never())->method('log');
        $this->setExpectedException(TerminusNotFoundException::class);
        $out = $this->command->setOwner('dummy-site', $email);
        $this->assertNull($out);
    }