setUp() 공개 메소드

public 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->languageRepository = \App::make(LanguageRepository::class);
     $this->translationRepository = \App::make(TranslationRepository::class);
 }
예제 #2
0
 public function setUp()
 {
     parent::setUp();
     $this->laravelLoader = Mockery::mock(LaravelFileLoader::class);
     // We will use the file loader:
     $this->fileLoader = new FileLoader('en', $this->laravelLoader);
 }
예제 #3
0
 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);
 }
예제 #4
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');
 }
예제 #5
0
 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);
 }
예제 #6
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);
 }
 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');
 }
예제 #10
0
 public function setUp()
 {
     parent::setUp();
     $this->translationRepository = \App::make(TranslationRepository::class);
     $this->loader = new DatabaseLoader('es', $this->translationRepository);
 }
예제 #11
0
 public function setUp()
 {
     parent::setUp();
     $this->cacheRepository = \App::make('translation.cache.repository');
 }