Pantheon\Terminus\UnitTests\Commands\Owner\SetCommandTest::testOwnerSetDontCatchException PHP Метод

testOwnerSetDontCatchException() публичный Метод

Exercises owner:set when throwing an error that is not a TerminusNotFoundException
    public function testOwnerSetDontCatchException()
    {
        $email = 'a-valid-email';
        $this->user_memberships->expects($this->once())->method('get')->with($this->equalTo($email))->will($this->throwException(new \Exception()));
        $this->site->expects($this->never())->method('setOwner');
        $this->logger->expects($this->never())->method('log');
        $this->setExpectedException(\Exception::class);
        $out = $this->command->setOwner('dummy-site', $email);
        $this->assertNull($out);
    }