Pantheon\Terminus\UnitTests\Models\SavedTokenTest::testInvalidID PHP Method

testInvalidID() public method

public testInvalidID ( )
    public function testInvalidID()
    {
        $this->token = new SavedToken((object) ['email' => '', 'token' => '123']);
        $this->token->setDataStore($this->data_store);
        $this->data_store->expects($this->never())->method('remove');
        $this->setExpectedException(TerminusException::class, 'Could not save the machine token because it is missing an ID');
        $this->token->saveToDir();
    }