public function test_it_can_give_me_primary_language_id() { $Config = m::mock('Illuminate\\Config\\Repository'); $Config->shouldReceive('get')->times(1)->andReturn(45); $LanguageDetector = new LanguageDetector(new LocaleDetector($this->Framework), new \DvsLanguage(), $Config); assertEquals(45, $LanguageDetector->primaryLanguageId()); }