public function testAddCollection() { $this->model->addDefinition(self::INSTANCE_1, $this->getArgument()); $this->collectionMock->expects($this->any())->method('getCollection')->willReturn([self::INSTANCE_2 => $this->getArgument()]); $this->model->addCollection($this->collectionMock); $this->assertEquals([self::INSTANCE_1 => $this->getArgument(), self::INSTANCE_2 => $this->getArgument()], $this->model->getCollection()); }