Esempio n. 1
0
 /**
  * @covers \Core\Contracts\Database\LanguageContract::create
  * @covers \Core\Database\Language\MySqlLanguage::create
  */
 public function setUp()
 {
     MockPaths::createMockPaths();
     $this->app = new Application(MockPaths::$basePath);
     $this->app->setEnvironment('test');
     $language = $this->getMapping();
     $table = $this->getTableSchema();
     $table2 = $this->getTable2Schema();
     $phoneTable = $this->getPhoneTableSchema();
     $postsTable = $this->getPostsTableSchema();
     $commentsTable = $this->getCommentsTableSchema();
     $employeeTable = $this->getEmployeeSchema();
     $educationTable = $this->getEducationSchema();
     $education_employeeTable = $this->getEmployee_Education_Schema();
     $language->create($table);
     $language->create($table2);
     $language->create($phoneTable);
     $language->create($postsTable);
     $language->create($commentsTable);
     $language->create($employeeTable);
     $language->create($educationTable);
     $language->create($education_employeeTable);
     $language->insert($table, $this->data);
     $language->insert($table2, $this->data);
     $language->insert($phoneTable, $this->phoneData);
     $language->insert($postsTable, $this->postData);
     $language->insert($commentsTable, $this->commentsData);
     $language->insert($employeeTable, $this->employeeData);
     $language->insert($educationTable, $this->educationData);
     $language->insert($education_employeeTable, $this->employee_education_data);
     parent::setUp();
 }