Example #1
0
 public function tearDown()
 {
     if (is_dir($this->oc_controller_dir)) {
         $this->fsh->rmdir($this->oc_controller_dir);
     }
     $this->installer->removeDatabase($this->options);
     $this->installer->removeConfigFiles();
 }
Example #2
0
 public function testInstallingOpenCart()
 {
     $options = $this->options;
     $output = $this->installer->install($options);
     $this->assertEquals("SUCCESS! Opencart successfully installed on your server", $output[0]);
     $this->assertEquals("Store link: " . $options['http_server'], $output[1]);
     $this->assertEquals("Admin link: " . $options['http_server'] . "admin/", $output[2]);
     $this->assertTrue(file_exists($this->oc_dir . DIRECTORY_SEPARATOR . "config.php"));
     $this->assertTrue(file_exists($this->oc_dir . DIRECTORY_SEPARATOR . "admin" . DIRECTORY_SEPARATOR . "config.php"));
     $this->installer->removeConfigFiles($options);
     $this->assertFalse(file_exists($this->oc_dir . DIRECTORY_SEPARATOR . "config.php"));
     $this->assertFalse(file_exists($this->oc_dir . DIRECTORY_SEPARATOR . "admin" . DIRECTORY_SEPARATOR . "config.php"));
     $this->installer->removeDatabase($options);
 }
Example #3
0
 public function tearDown()
 {
     $this->installer->removeDatabase($this->options);
     $this->installer->removeConfigFiles();
 }