PHP code example of christophwurst / nextcloud_testing
1. Go to this page and download the library: Download christophwurst/nextcloud_testing library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
christophwurst / nextcloud_testing example snippets
use ChristophWurst\Nextcloud\Testing\TestCase;
class ControllerTest extends TestCase {
… your test code …
}
use ChristophWurst\Nextcloud\Testing\DatabaseTransaction;
use ChristophWurst\Nextcloud\Testing\TestCase;
class ControllerTest extends TestCase {
use DatabaseTransaction;
… your test code …
}
use ChristophWurst\Nextcloud\Testing\Selenium;
use ChristophWurst\Nextcloud\Testing\TestCase;
class ControllerTest extends TestCase {
use Selenium;
public function testWithSelenium() {
…
$this->webDriver->get('http://localhost:8080/index.php/login');
…
}
}
use ChristophWurst\Nextcloud\Testing\TestCase;
use ChristophWurst\Nextcloud\Testing\TestUser;
class ControllerTest extends TestCase {
use TestUser;
public function testWithSelenium() {
…
$user = $this->createTestUser();
…
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.