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->laravelLoader = Mockery::mock(LaravelFileLoader::class); // We will use the file loader: $this->fileLoader = new FileLoader('en', $this->laravelLoader); }
public function setUp() { parent::setUp(); $this->fileLoader = Mockery::mock(FileLoader::class); $this->dbLoader = Mockery::mock(DatabaseLoader::class); $this->mixedLoader = new MixedLoader('en', $this->fileLoader, $this->dbLoader); }
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() { // During the parent's setup, both a 'es' 'Spanish' and 'en' 'English' languages are inserted into the database. parent::setUp(); $this->languageRepository = Mockery::mock(LanguageRepository::class); $this->router = Mockery::mock(Router::class); $this->registrar = new ResourceRegistrar($this->router, $this->languageRepository); }
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 setUp() { // During the parent's setup, both a 'es' 'Spanish' and 'en' 'English' languages are inserted into the database. parent::setUp(); }
public function setUp() { parent::setUp(); $this->repo = Mockery::mock(TranslationRepository::class); $this->loader = new DatabaseLoader('en', $this->repo); }
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'); }
public function setUp() { parent::setUp(); $this->translationRepository = \App::make(TranslationRepository::class); $this->loader = new DatabaseLoader('es', $this->translationRepository); }
public function setUp() { parent::setUp(); $this->cacheRepository = \App::make('translation.cache.repository'); }