aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-26 11:43:07 +0000
committerMario <mario@mariovavti.com>2020-11-26 11:43:07 +0000
commit6f6399ca0f30870ef83b64121d379e537ceebfb8 (patch)
treef4a76cf0bbcac7b469227c255980012f23c3bc48 /tests
parent5018c0fbb8da6d2506808ad9d741c3ce651f3dd5 (diff)
downloadvolse-hubzilla-6f6399ca0f30870ef83b64121d379e537ceebfb8.tar.gz
volse-hubzilla-6f6399ca0f30870ef83b64121d379e537ceebfb8.tar.bz2
volse-hubzilla-6f6399ca0f30870ef83b64121d379e537ceebfb8.zip
fix test
Diffstat (limited to 'tests')
-rw-r--r--tests/phpunit.xml2
-rw-r--r--tests/unit/Access/PermissionRolesTest.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/phpunit.xml b/tests/phpunit.xml
index 717d8fc8a..bbea6b534 100644
--- a/tests/phpunit.xml
+++ b/tests/phpunit.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="../boot.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
- <coverage processUncoveredFiles="true">
+ <coverage processUncoveredFiles="false">
<include>
<directory suffix=".php">../Zotlabs/</directory>
<directory suffix=".php">../include/</directory>
diff --git a/tests/unit/Access/PermissionRolesTest.php b/tests/unit/Access/PermissionRolesTest.php
index 58fd88bb1..dd55eb6e2 100644
--- a/tests/unit/Access/PermissionRolesTest.php
+++ b/tests/unit/Access/PermissionRolesTest.php
@@ -26,6 +26,7 @@ namespace Zotlabs\Tests\Unit\Access;
use Zotlabs\Tests\Unit\UnitTestCase;
use Zotlabs\Access\PermissionRoles;
use phpmock\phpunit\PHPMock;
+use DMS\PHPUnitExtensions\ArraySubset\Assert;
/**
* @brief Unit Test case for PermissionRoles class.
@@ -68,7 +69,7 @@ class PermissionRolesTest extends UnitTestCase {
'social_private' => 'Social - Private'
];
- $this->assertArraySubset(['Social Networking' => $socialNetworking], $roles);
+ Assert::assertArraySubset(['Social Networking' => $socialNetworking], $roles);
$this->assertEquals($socialNetworking, $roles['Social Networking']);
$this->assertCount(5, $roles, 'There should be 5 permission groups.');