Inheritance: extends Orchestra\Testbench\TestCase
 public function setUp()
 {
     // During the parent's setup, both a 'es' 'Spanish' and 'en' 'English' languages are inserted into the database.
     parent::setUp();
     $this->languageRepository = \App::make(LanguageRepository::class);
     $this->translationRepository = \App::make(TranslationRepository::class);
 }
Esempio n. 2
0
 public function setUp()
 {
     parent::setUp();
     $this->languageRepository = \App::make(LanguageRepository::class);
     $this->translationRepository = \App::make(TranslationRepository::class);
     $translationsPath = realpath(__DIR__ . '/../lang');
     $this->command = new FileLoaderCommand($this->languageRepository, $this->translationRepository, \App::make('files'), $translationsPath, 'en');
 }
Esempio n. 3
0
 public function setUp()
 {
     parent::setUp();
     \Schema::create('dummies', function ($table) {
         $table->increments('id');
         $table->string('title')->nullable();
         $table->string('title_translation')->nullable();
         $table->string('slug')->nullable();
         $table->string('text')->nullable();
         $table->string('text_translation')->nullable();
         $table->timestamps();
     });
     $this->languageRepository = \App::make(LanguageRepository::class);
     $this->translationRepository = \App::make(TranslationRepository::class);
 }
Esempio n. 4
0
 public function tearDown()
 {
     Mockery::close();
     parent::tearDown();
 }
 public function setUp()
 {
     // During the parent's setup, both a 'es' 'Spanish' and 'en' 'English' languages are inserted into the database.
     parent::setUp();
 }
 public function setUp()
 {
     // During the parent's setup, both a 'es' 'Spanish' and 'en' 'English' languages are inserted into the database.
     parent::setUp();
     $this->repo = new TaggedRepository(new ArrayStore(), 'translation');
 }