Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Rudolf <github.com@daniel-rudolf.de>2021-04-16 20:08:23 +0300
committerDaniel Rudolf <github.com@daniel-rudolf.de>2021-04-16 20:09:23 +0300
commit6d2480df04fa5d411c310e7abf769c2821ab0bcd (patch)
treef03680648ffbdbf00b76930d4ff7dbcde0c407bf /tests
parent472a30d719621ec32a16cacb96d6a9c3c05adf6b (diff)
Fix PHPUnit unit and integration tests
Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/Integration/App/AppTest.php (renamed from tests/Integration/app/AppTest.php)2
-rw-r--r--tests/phpunit.integration.xml12
-rw-r--r--tests/phpunit.xml4
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/Integration/app/AppTest.php b/tests/Integration/App/AppTest.php
index 3255b35e..079a019c 100644
--- a/tests/Integration/app/AppTest.php
+++ b/tests/Integration/App/AppTest.php
@@ -21,7 +21,7 @@
*
*/
-namespace OCA\Polls\Tests\Integration;
+namespace OCA\Polls\Tests\Integration\App;
use OCP\AppFramework\App;
use PHPUnit\Framework\TestCase;
diff --git a/tests/phpunit.integration.xml b/tests/phpunit.integration.xml
index 64feebdd..70b8c68f 100644
--- a/tests/phpunit.integration.xml
+++ b/tests/phpunit.integration.xml
@@ -1,12 +1,12 @@
<phpunit bootstrap="bootstrap.php" colors="true">
- <testsuites>
- <testsuite name="integration-app">
- <directory>Integration/app</directory>
- </testsuite>
- </testsuites>
<filter>
<whitelist>
- <directory suffix=".php">./../lib</directory>
+ <directory suffix=".php">../lib</directory>
</whitelist>
</filter>
+ <testsuites>
+ <testsuite name="integration">
+ <directory>./Integration</directory>
+ </testsuite>
+ </testsuites>
</phpunit>
diff --git a/tests/phpunit.xml b/tests/phpunit.xml
index c09aa95b..5f6733f1 100644
--- a/tests/phpunit.xml
+++ b/tests/phpunit.xml
@@ -1,7 +1,7 @@
-<phpunit bootstrap="./bootstrap.php" colors="true">
+<phpunit bootstrap="bootstrap.php" colors="true">
<filter>
<whitelist>
- <directory suffix=".php">lib</directory>
+ <directory suffix=".php">../lib</directory>
</whitelist>
</filter>
<testsuites>