Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored unit tests so that they follow the diretory structure of src/
- Loading branch information
Showing
30 changed files
with
393 additions
and
388 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Jackalope; | ||
|
||
class FactoryTest extends TestCase | ||
{ | ||
public function testDummy() | ||
{ | ||
$this->markTestSkipped('No tests for this class yet'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Jackalope; | ||
|
||
class HelperTest extends TestCase | ||
{ | ||
public function testDummy() | ||
{ | ||
$this->markTestSkipped('No tests for this class yet'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Jackalope; | ||
|
||
class ItemTest extends TestCase | ||
{ | ||
public function testDummy() | ||
{ | ||
$this->markTestSkipped('No tests for this class yet'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Jackalope; | ||
|
||
class NamespaceRegistryTest extends TestCase | ||
{ | ||
public function testDummy() | ||
{ | ||
$this->markTestSkipped('No tests for this class yet'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Jackalope\NodeType; | ||
|
||
use Jackalope\TestCase; | ||
|
||
class ItemDefinitionTest extends TestCase | ||
{ | ||
public function testDummy() | ||
{ | ||
$this->markTestSkipped('No tests for this class yet'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Jackalope\NodeType; | ||
|
||
use Jackalope\TestCase; | ||
|
||
class NodeDefinitionTemplateTest extends TestCase | ||
{ | ||
/** | ||
* @covers jackalope\NodeType\NodeDefinitionTemplate::__construct | ||
*/ | ||
public function testCreateNodeDefinitionTemplateEmpty() { | ||
$ntm = $this->getNodeTypeManager(); | ||
|
||
$ndt = $ntm->createNodeDefinitionTemplate(); | ||
|
||
// is empty as defined by doc | ||
$this->assertNull($ndt->getName()); | ||
$this->assertFalse($ndt->isAutoCreated()); | ||
$this->assertFalse($ndt->isMandatory()); | ||
$this->assertSame(\PHPCR\Version\OnParentVersionAction::COPY, $ndt->getOnParentVersion()); | ||
$this->assertFalse($ndt->isProtected()); | ||
$this->assertNull($ndt->getRequiredPrimaryTypeNames()); | ||
$this->assertNull($ndt->getDefaultPrimaryTypeName()); | ||
$this->assertFalse($ndt->allowsSameNameSiblings()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Jackalope\NodeType; | ||
|
||
use Jackalope\TestCase; | ||
|
||
class NodeDefinitionTest extends TestCase | ||
{ | ||
public function testDummy() | ||
{ | ||
$this->markTestSkipped('No tests for this class yet'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Jackalope\NodeType; | ||
|
||
use Jackalope\TestCase; | ||
|
||
class NodeTypeDefinitionTest extends TestCase | ||
{ | ||
public function testDummy() | ||
{ | ||
$this->markTestSkipped('No tests for this class yet'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Jackalope\NodeType; | ||
|
||
use Jackalope\TestCase; | ||
|
||
class NodeTypeTemplateTest extends TestCase | ||
{ | ||
/** | ||
* @covers jackalope\NodeType\NodeTypeTemplate | ||
*/ | ||
public function testCreateNodeTypeTemplateEmpty() { | ||
$ntm = $this->getNodeTypeManager(); | ||
|
||
$ntt = $ntm->createNodeTypeTemplate(); | ||
|
||
// is empty as defined by doc | ||
$this->assertNull($ntt->getName()); | ||
$this->assertSame(array('nt:base'), $ntt->getDeclaredSupertypeNames()); | ||
$this->assertFalse($ntt->isAbstract()); | ||
$this->assertFalse($ntt->isMixin()); | ||
$this->assertFalse($ntt->hasOrderableChildNodes()); | ||
$this->assertFalse($ntt->isQueryable()); | ||
$this->assertNull($ntt->getPrimaryItemName()); | ||
$this->assertNull($ntt->getDeclaredPropertyDefinitions()); | ||
$this->assertNull($ntt->getDeclaredChildNodeDefinitions()); | ||
} | ||
|
||
} |
Oops, something went wrong.