/** * Constructor * * @param \rsanchez\Deep\Model\Channel $model */ public function __construct(Channel $model) { $this->model = $model; $this->collection = $this->model->all(); foreach ($this->collection as $channel) { $this->channelsById[$channel->channel_id] = $channel; $this->channelsByName[$channel->channel_name] = $channel; } }
public function setUp() { $this->all = Channel::all(); $this->channel = Channel::find(1); }