]> git.mxchange.org Git - friendica.git/commit
Refactoring DBA-mocking tests
authorPhilipp Holzer <admin@philipp.info>
Wed, 30 Jan 2019 19:26:17 +0000 (20:26 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sat, 2 Feb 2019 18:03:15 +0000 (19:03 +0100)
commit433d6abe8c7810e3a8a6ee134a8bc6880e265cd0
treed8805af32d5384cf640307e6e8b17984dc83c948
parentf7e95f65b168b565aa47f400a95de47084c69676
Refactoring DBA-mocking tests
- Reducing DB-dependencies
- Creating DB-cache mocks
- Creating DB-lock mocks
- Switching to mocked dependencies for Cache/Lock/App
21 files changed:
src/Core/Lock/DatabaseLockDriver.php
tests/Util/DBAMockTrait.php
tests/Util/DateTimeFormatMockTrait.php [new file with mode: 0644]
tests/Util/DbaCacheMockTrait.php [new file with mode: 0644]
tests/Util/DbaLockMockTrait.php [new file with mode: 0644]
tests/src/BaseObjectTest.php
tests/src/Core/Cache/CacheTest.php
tests/src/Core/Cache/DatabaseCacheDriverTest.php
tests/src/Core/Cache/MemcacheCacheDriverTest.php
tests/src/Core/Cache/MemcachedCacheDriverTest.php
tests/src/Core/Cache/MemoryCacheTest.php
tests/src/Core/Cache/RedisCacheDriverTest.php
tests/src/Core/Console/ConfigConsoleTest.php
tests/src/Core/InstallerTest.php
tests/src/Core/Lock/DatabaseLockDriverTest.php
tests/src/Core/Lock/LockTest.php
tests/src/Core/Lock/MemcacheCacheLockDriverTest.php
tests/src/Core/Lock/MemcachedCacheLockDriverTest.php
tests/src/Core/Lock/RedisCacheLockDriverTest.php
tests/src/Core/Lock/SemaphoreLockDriverTest.php
tests/src/Network/CurlResultTest.php