Skip to content

Commit

Permalink
added new tests and adapted fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
danrot authored and dbu committed Jan 22, 2016
1 parent 7abb78d commit afba787
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ImplementationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ protected function __construct(Connection $connection, $fixturePath)
'Query\\XPath', // Query language 'xpath' not implemented.
'Query\\Sql1', // Query language 'sql' is legacy and only makes sense with jackrabbit
'Writing\\CloneMethodsTest', // TODO: Support for workspace->clone, node->update, node->getCorrespondingNodePath

// TODO fully implement versioning
'Versioning\\VersionManagerTest',
);

$this->unsupportedTests = array(
Expand Down Expand Up @@ -90,6 +87,9 @@ protected function __construct(Connection $connection, $fixturePath)
'Versioning\\VersionHistoryTest::testDeleteVersion',
'Versioning\\VersionHistoryTest::testDeleteLatestVersion',
'Versioning\\VersionHistoryTest::testDeleteUnexistingVersion',
'Versioning\\VersionManagerTest::testRestoreByPathAndName',
'Versioning\\VersionManagerTest::testRestoreByVersionObject',
'Versioning\\VersionManagerTest::testRestoreRootVersion',
);

if ($connection->getDatabasePlatform() instanceof Doctrine\DBAL\Platforms\SqlitePlatform) {
Expand Down
1 change: 1 addition & 0 deletions tests/Jackalope/Test/Fixture/DBUnitFixtureXML.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ private function addVersioningProperties(\DOMDocument $dom, \DOMElement $node, $
. '<sv:value length="36">' . $rootVersionUuid . '</sv:value>'
. '</sv:property>'
. '<sv:property sv:name="jcr:predecessors" sv:type="String" sv:multi-valued="1"/>'
. '<sv:property sv:name="jcr:successors" sv:type="String" sv:multi-valued="1"/>'
. '</sv:node>',
'depth' => PathHelper::getPathDepth($rootVersionPath),
'sort_order' => $id - 2,
Expand Down

0 comments on commit afba787

Please sign in to comment.