public function setUp()
{
parent::setUp();
$this->container = new Container();
$this->workflow = $this->getMockBuilder(Workflow::class)->disableOriginalConstructor()->getMock();
$this->workflows = $this->getMockBuilder(Workflows::class)->disableOriginalConstructor()->getMock();
$this->upstream = $this->getMockBuilder(Upstream::class)->disableOriginalConstructor()->getMock();
$this->container->add(Workflows::class, $this->workflows);
$this->container->add(Upstream::class, $this->upstream);
$this->model = new Site((object) ['id' => 123, 'name' => 'My Site']);
$this->model->setContainer($this->container);
$this->model->setRequest($this->request);
$this->model->setConfig($this->config);
}