public function test_throws_exception_if_name_is_not_set_in_config() { $this->setExpectedException('Anavel\\Crud\\Abstractor\\Exceptions\\RelationException', 'Relation name should be set'); $this->sut = new SelectMultiple($this->wrongConfig['Users']['relations']['relation-without-name'], $this->modelManagerMock = Mockery::mock('ANavallaSuiza\\Laravel\\Database\\Contracts\\Manager\\ModelManager'), $user = new User(), $user->posts(), $this->fieldMock); }