Пример #1
0
 /** @test */
 public function it_adds_an_script_action_to_the_elixir_file()
 {
     $report = ElixirFile::addScript('script.js');
     $this->assertEquals($report, 'SUCCESS');
     $fileContent = File::get($this->exampleFile);
     $contentShouldExist = "mix.browserify('script.js');";
     $this->assertContains($contentShouldExist, $fileContent);
 }
Пример #2
0
 /**
  * 
  * Setup Vue.
  *
  * @return void
  */
 protected function setUpVue()
 {
     $this->describeMethod('Setup vue-system');
     $this->copyVueStubs();
     $report = ElixirFile::addScript('backend.js');
     $this->reportStep('add task for publishing backend.js in elixir-file', $report);
     $report = VueAssembler::web()->addPage('login-page', './pages/LoginPage.vue');
     $this->reportStep('require LoginPage.vue in web.js', $report);
     $report = VueAssembler::web()->addPage('request-password-page', './pages/RequestPasswordPage.vue');
     $this->reportStep('require RequestPasswordPage.vue in web.js', $report);
     $report = VueAssembler::web()->addPage('reset-password-page', './pages/ResetPasswordPage.vue');
     $this->reportStep('require ResetPasswordPage.vue in web.js', $report);
 }