public function getAdditionalSession($credentials = false)
 {
     if (!$this->multiWorkspaceSupported) {
         return null;
     }
     return parent::getAdditionalSession($credentials);
 }
 protected function __construct()
 {
     parent::__construct('Jackalope\\RepositoryFactoryFilesystem', $GLOBALS['phpcr.workspace']);
     $this->unsupportedChapters = array('Connecting', 'Reading', 'Query', 'Export', 'NodeTypeDiscovery', 'PermissionsAndCapabilities', 'Writing', 'Import', 'Observation', 'WorkspaceManagement', 'ShareableNodes', 'Versioning', 'AccessControlManagement', 'Locking', 'LifecycleManagement', 'NodeTypeManagement', 'RetentionAndHold', 'Transactions', 'SameNameSiblings', 'OrderableChildNodes', 'PhpcrUtils');
     $this->unsupportedCases = array();
     $this->unsupportedTests = array();
 }
 protected function __construct()
 {
     parent::__construct('Jackalope\\RepositoryFactoryFilesystem', $GLOBALS['phpcr.workspace']);
     $this->unsupportedChapters = array('WorkspaceManagement', 'ShareableNodes', 'Versioning', 'AccessControlManagement', 'Locking', 'LifecycleManagement', 'RetentionAndHold', 'Transactions', 'SameNameSiblings', 'OrderableChildNodes', 'PermissionsAndCapabilities', 'Observation');
     $this->unsupportedCases = array('Query\\XPath', 'Query\\Sql1', 'Writing\\CloneMethodsTest');
     $this->unsupportedTests = array('Connecting\\RepositoryTest::testLoginException', 'Reading\\NodeReadMethodsTest::testGetSharedSetUnreferenced', 'Reading\\SessionNamespaceRemappingTest::testSetNamespacePrefix', 'Reading\\SessionReadMethodsTest::testImpersonate', 'Reading\\NodeReadMethodsTest::testGetNodesTypeFilter', 'Reading\\NodeReadMethodsTest::testGetNodesTypeFilterList', 'Query\\NodeViewTest::testSeekable', 'Query\\QueryManagerTest::testGetQuery', 'Query\\QueryManagerTest::testGetQueryInvalid', 'Query\\QueryObjectSql2Test::testGetStoredQueryPath', 'Query\\QuerySql2OperationsTest::testQueryJoin', 'Query\\QuerySql2OperationsTest::testQueryJoinChildnode', 'Query\\QuerySql2OperationsTest::testQueryJoinReference', 'Query\\QuerySql2OperationsTest::testQueryJoinWithAlias', 'Query\\QuerySql2OperationsTest::testQueryLeftJoin', 'Query\\QuerySql2OperationsTest::testQueryRightJoin', 'Query\\QuerySql2OperationsTest::testLengthOperandOnBinaryProperty', 'Query\\QuerySql2OperationsTest::testLengthOperandOnEmptyProperty', 'Query\\QuerySql2OperationsTest::testLengthOperandOnStringProperty', 'Writing\\CombinedManipulationsTest::testAddAndRemoveAndAdd', 'Writing\\CombinedManipulationsTest::testRemoveAndAddToplevelNode', 'Writing\\CombinedManipulationsTest::testRemoveAndAddAndRemoveToplevelNode', 'Writing\\CopyMethodsTest::testCopyUpdateOnCopy', 'Writing\\CopyMethodsTest::testCopyUpdateOnCopy', 'Writing\\LastModifiedTest::testUpdateText', 'Writing\\LastModifiedTest::testUpdateBinary', 'Writing\\LastModifiedTest::testRemoveProperty', 'Writing\\SetPropertyTypesTest::testCreateValueBinaryFromStream', 'Writing\\SetPropertyTypesTest::testCreateValueBinaryFromStreamAndRead');
     $this->path = __DIR__ . '/data';
     // start with a clean system
     $filesystem = new Filesystem();
     $filesystem->remove($this->path);
 }
 protected function __construct(Connection $connection, $fixturePath)
 {
     parent::__construct('Jackalope\\RepositoryFactoryDoctrineDBAL', $GLOBALS['phpcr.workspace']);
     $this->connection = $connection;
     $this->fixturePath = $fixturePath;
     $this->unsupportedChapters = array('ShareableNodes', 'AccessControlManagement', 'LifecycleManagement', 'RetentionAndHold', 'SameNameSiblings', 'PermissionsAndCapabilities', 'Observation', 'Versioning', 'Locking');
     $this->unsupportedCases = array('Query\\XPath', 'Query\\Sql1', 'Writing\\CloneMethodsTest');
     $this->unsupportedTests = array('Connecting\\RepositoryTest::testLoginException', 'Reading\\NodeReadMethodsTest::testGetSharedSetUnreferenced', 'Reading\\SessionReadMethodsTest::testImpersonate', 'Reading\\SessionNamespaceRemappingTest::testSetNamespacePrefix', 'Reading\\NodeReadMethodsTest::testGetNodesTypeFilter', 'Reading\\NodeReadMethodsTest::testGetNodesTypeFilterList', 'Query\\QueryManagerTest::testGetQuery', 'Query\\QueryManagerTest::testGetQueryInvalid', 'Query\\QueryObjectSql2Test::testGetStoredQueryPath', 'Query\\QuerySql2OperationsTest::testQueryOrderWithMissingProperty', 'Query\\NodeViewTest::testSeekable', 'Writing\\CopyMethodsTest::testCopyUpdateOnCopy', 'Transactions\\TransactionMethodsTest::testTransactionCommit', 'WorkspaceManagement\\WorkspaceManagementTest::testCreateWorkspaceWithSource', 'WorkspaceManagement\\WorkspaceManagementTest::testCreateWorkspaceWithInvalidSource');
     if ($connection->getDatabasePlatform() instanceof Doctrine\DBAL\Platforms\SqlitePlatform) {
         $this->unsupportedTests[] = 'Query\\QuerySql2OperationsTest::testQueryRightJoin';
     }
 }
 protected function __construct()
 {
     // Make sure we have the necessary config
     foreach ($this->necessaryConfigValues as $val) {
         if (empty($GLOBALS[$val])) {
             die('Please set ' . $val . ' in your phpunit.xml.' . "\n");
         }
     }
     parent::__construct('Jackalope\\RepositoryFactoryMongoDB');
     $this->unsupportedChapters = array('Export', 'Import', 'NodeTypeManagement', 'SameNameSiblings', 'OrderableChildNodes', 'Observation', 'Versioning', 'Locking', 'Transactions');
     $this->unsupportedCases = array('Writing\\AddMethodsTest', 'Writing\\CloneMethodsTest', 'Writing\\CombinedManipulationsTest', 'Writing\\CopyMethodsTest', 'Writing\\SetPropertyTypesTest', 'Writing\\SetPropertyDynamicRebindingTest', 'Writing\\DeleteMethodsTest', 'Writing\\SetPropertyMethodsTest', 'Writing\\MoveMethodsTest', 'Writing\\NodeTypeAssignementTest', 'Writing\\EncodingTest', 'Writing\\MixinReferenceableTest', 'Writing\\ItemStateTest', 'Writing\\LastModifiedTest', 'Writing\\MixinCreatedTest', 'Query\\XPath\\QueryOperationsTest', 'Query\\QuerySql2OperationsTest', 'Query\\RowIteratorTest', 'Query\\RowTest', 'Query\\Sql1\\QueryOperationsTest');
     $this->unsupportedTests = array('Connecting\\RepositoryTest::testLoginException', 'Connecting\\WorkspaceReadMethodsTest::testGetQueryManager', 'Reading\\SessionReadMethodsTest::testImpersonate', 'Reading\\SessionNamespaceRemappingTest::testSetNamespacePrefix', 'Reading\\NodeReadMethodsTest::testGetSharedSetUnreferenced', 'Reading\\BinaryReadMethodsTest::testReadBinaryValue', 'Reading\\BinaryReadMethodsTest::testIterateBinaryValue', 'Reading\\BinaryReadMethodsTest::testReadBinaryValueAsString', 'Reading\\BinaryReadMethodsTest::testReadBinaryValues', 'Reading\\BinaryReadMethodsTest::testReadBinaryValuesAsString', 'Reading\\BinaryReadMethodsTest::testReadBinaryPathEncoding', 'Reading\\BinaryReadMethodsTest::testReadBinaryPathTrailingQuestionmark', 'Reading\\PropertyReadMethodsTest::testGetBinary', 'Reading\\PropertyReadMethodsTest::testGetBinaryMulti', 'Query\\QueryManagerTest::testGetQuery', 'Query\\QueryManagerTest::testGetQueryInvalid', 'Query\\NodeViewTest::testSeekable', 'Query\\NodeViewTest::testSeekableOutOfBounds', 'Query\\QueryObjectSql2Test::testGetStoredQueryPath', 'Query\\QueryObjectSql2Test::testExecuteLimit', 'Query\\QueryObjectSql2Test::testExecuteOffset', 'Query\\QueryObjectSql2Test::testExecuteLimitAndOffset', 'Query\\QueryResultsTest::testGetColumnNames', 'Query\\QueryResultsTest::testGetAliasColumnNames', 'Query\\QueryResultsTest::testGetSelectorNames', 'Query\\QueryResultsTest::testGetNodes', 'Query\\QueryResultsTest::testIterateOverQueryResult', 'Query\\QueryResultsTest::testReadPropertyContentFromResults', 'Query\\QueryResultsTest::testCompareNumberFields', 'Query\\QueryResultsTest::testCompareStringFields', 'Query\\QueryResultsTest::testBooleanField', 'Query\\CharacterTest::testPropertyWithBackslash', 'Query\\CharacterTest::testPropertyWithDoubleBackslash', 'Query\\CharacterTest::testPropertyWithQuotes', 'Query\\CharacterTest::testPropertyWithQuotesAndBackslash', 'Query\\CharacterTest::testQueryWithAmpersand', 'Query\\NodeViewTest::testIterator', 'Query\\QueryObjectQOMTest::testExecute', 'Query\\QueryObjectQOMTest::testExecuteInvalid', 'Writing\\NamespaceRegistryTest::testRegisterUnregisterNamespace', 'WorkspaceManagement\\WorkspaceManagementTest::testCreateWorkspaceWithSource', 'WorkspaceManagement\\WorkspaceManagementTest::testCreateWorkspaceWithInvalidSource', 'PhpcrUtils\\PurgeTest::testPurge', 'PermissionsAndCapabilities\\PermissionReadTest::testCheckPermissionAccessControlException');
 }
Example #6
0
 /**
  * create a session with the given credentials and assert this is a session.
  *
  * this is similar to doing self::$loader->getSession($credentials) but
  * does error handling and asserts the session is a valid SessionInterface
  *
  * @return \PHPCR\SessionInterface the session from the login
  */
 protected function assertSession($credentials = false)
 {
     try {
         $ses = self::$loader->getSession($credentials);
     } catch (\PHPCR\RepositoryException $e) {
         if ($e->getMessage() == self::NOTSUPPORTEDLOGIN) {
             $this->markTestSkipped('This implementation does not support this type of login.');
         } else {
             throw $e;
         }
     }
     $this->assertInstanceOf('PHPCR\\SessionInterface', $ses);
     return $ses;
 }