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); }
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'); }
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); }
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'); }