Skip to content

Commit

Permalink
Added group DB annotation to failing tests using sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBertolinSG committed Nov 2, 2017
1 parent 7bc5e66 commit 849fcf7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/lib/Encryption/EncryptionWrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function setUp() {

/**
* @dataProvider provideWrapStorage
* @group DB
*/
public function testWrapStorage($expectedWrapped, $wrappedStorages) {
$storage = $this->getMockBuilder('OC\Files\Storage\Storage')
Expand Down
4 changes: 4 additions & 0 deletions tests/lib/Files/External/PersonalMountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
use Test\TestCase;

class PersonalMountTest extends TestCase {

/**
* @group DB
*/
public function testFindByStorageId() {
/** @var \OCP\Files\External\Service\IUserStoragesService $storageService */
$storageService = $this->createMock('\OCP\Files\External\Service\IUserStoragesService');
Expand Down
6 changes: 6 additions & 0 deletions tests/lib/Files/Mount/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ protected function setup() {
$this->manager = new \OC\Files\Mount\Manager();
}

/**
* @group DB
*/
public function testFind() {
$this->assertNull($this->manager->find('/'));

Expand Down Expand Up @@ -54,6 +57,9 @@ public function testFind() {
$this->assertEquals([$mount1, $mount3], $this->manager->findByStorageId($id));
}

/**
* @group DB
*/
public function testLong() {
$storage = new LongId([]);
$mount = new \OC\Files\Mount\MountPoint($storage, '/foo');
Expand Down

0 comments on commit 849fcf7

Please sign in to comment.