Pantheon\Terminus\UnitTests\Models\SiteTest::testUpdateServiceLevel PHP Метод

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

Tests Site::updateServiceLevel($service_level)
    public function testUpdateServiceLevel()
    {
        $service_level = 'service_level';
        $this->workflows->expects($this->once())->method('create')->with($this->equalTo('change_site_service_level'), $this->equalTo(['params' => compact('service_level')]))->willReturn($this->workflow);
        $workflow = $this->model->updateServiceLevel($service_level);
        $this->assertEquals($workflow, $this->workflow);
    }