set() public method

Set a site's service level
public set ( string $site_id, string $level )
$site_id string The name of the site to set the service level of
$level string [free|basic|pro|business] The service level to set the site to
 /**
  * Tests the service-level:set command
  */
 public function testServiceLevelSet()
 {
     $workflow = $this->getMockBuilder(Workflow::class)->disableOriginalConstructor()->getMock();
     // workflow succeeded
     $workflow->expects($this->once())->method('checkProgress')->willReturn(true);
     $workflow->expects($this->once())->method('getMessage')->willReturn('successful workflow');
     $this->logger->expects($this->at(0))->method('log')->with($this->equalTo('notice'), $this->equalTo('Setting plan of "{site_id}" to "{level}".'), $this->equalTo(['site_id' => 'my-site', 'level' => 'free']));
     $this->logger->expects($this->at(1))->method('log')->with($this->equalTo('notice'), $this->equalTo('successful workflow'));
     $this->site->expects($this->once())->method('updateServiceLevel')->with('free')->willReturn($workflow);
     $command = new SetCommand();
     $command->setSites($this->sites);
     $command->setLogger($this->logger);
     $command->set('my-site', 'free');
 }