Pantheon\Terminus\UnitTests\Models\EnvironmentTest::testDelete PHP Метод

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

public testDelete ( )
    public function testDelete()
    {
        $model = $this->_createModel(['id' => 'mymulti']);
        $this->site->method('getWorkflows')->willReturn($this->workflows);
        $this->workflows->expects($this->any())->method('create')->with('delete_cloud_development_environment', ['params' => ['environment_id' => 'mymulti', 'delete_branch' => false]])->willReturn($this->workflow);
        $actual = $model->delete();
        $this->assertEquals($this->workflow, $actual);
    }