public function createModel() { $mock = $this->getMock(ChannelModelInterface::class, [], [], '', false); $this->setProtectedProperty($this->channel, 'model', $mock); return $mock; }