Example #1
0
 public function setUp()
 {
     parent::setUp();
     $this->config = m::mock('Illuminate\\Config\\Repository');
     $this->config->shouldReceive('get')->with('multilang::languageModel')->andReturn('Muratsplat\\Multilang\\Tests\\Model\\Language');
     $this->config->shouldReceive('get')->with('multilang::reservedAttribute')->andReturn('__lang_id__');
     $this->config->shouldReceive('offsetGet')->andReturn('testbench');
     $this->app['config'] = $this->config;
     $this->contentLang = new ContentLang();
 }
 public function setUp()
 {
     parent::setUp();
     $this->language = new Language();
 }
Example #3
0
 public function setUp()
 {
     parent::setUp();
     // setting laravel events object
     MultiLang::setEventDispatcher($this->app['events']);
 }
 public function tearDown()
 {
     parent::tearDown();
     m::close();
 }
Example #5
0
 public function tearDown()
 {
     parent::tearDown();
     m::close();
     \Cache::flush();
 }