示例#1
0
 /** @test */
 function it_returns_the_class_path()
 {
     $builder = $this->getBuilder();
     $this->assertEquals(generated_path() . '/Forms/EditProjectForm.php', $builder->getClassFilePath('project'));
 }
示例#2
0
 /**
  * Getter for entity base path
  *
  * @return string
  */
 public function getBasePath()
 {
     return generated_path('Entities');
 }
示例#3
0
 /**
  * Getter for entity base path
  *
  * @return string
  */
 public function getBasePath()
 {
     return generated_path('Forms');
 }
示例#4
0
 /** @test */
 function it_returns_the_class_path()
 {
     $builder = $this->getBuilder();
     $this->assertEquals(generated_path() . '/Entities/NsProject.php', $builder->getClassFilePath('project'));
 }
示例#5
0
 /**
  * Getter for entity base path
  *
  * @return string
  */
 public function getBasePath()
 {
     return generated_path('Migrations');
 }
 /** @test */
 function it_returns_migration_path_for_table_fields()
 {
     $builder = $this->getBuilder();
     $this->assertEquals(generated_path() . '/Migrations/HierarchyCreateDateFieldForProjectSourceTable.php', $builder->getMigrationPath('project', 'date'));
 }
示例#7
0
 /** @test */
 function it_registers_generated_path_helper()
 {
     $this->assertEquals($this->app['path.generated'], generated_path());
 }