Ejemplo n.º 1
0
 /** @test */
 public function it_adds_an_copy_action_to_the_elixir_file()
 {
     $report = ElixirFile::addCopy('./folder/file/example', './destination/file/example');
     $this->assertEquals($report, 'SUCCESS');
     $fileContent = File::get($this->exampleFile);
     $contentShouldExist = "\n\tmix.copy(\n\t\t'./folder/file/example',\n\t\t'./destination/file/example'\n\t);";
     $this->assertContains($contentShouldExist, $fileContent);
 }
Ejemplo n.º 2
0
 /**
  * Add needed tasks to elixir.
  *
  * @return void
  */
 protected function updateElixirFile()
 {
     $this->describeMethod('Update elixir file with tasks');
     $report = ElixirFile::addCopy('vendor/patrikkernke/basecamp-design/src/fonts', 'public/fonts');
     $this->reportStep('add copy task for the framework fonts', $report);
     $report = ElixirFile::addCopy('node_modules/material-design-icons/iconfont', 'public/fonts/material-design-icons');
     $this->reportStep('add copy task for the material-design-icons font', $report);
 }