mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed manifestbuilder test so as not to confuse the real manifest builder
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@51858 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
df474f0467
commit
ff5caad6ce
52
tests/ManifestBuilderTest.fixture.inc
Normal file
52
tests/ManifestBuilderTest.fixture.inc
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
$filesystemFixture = array(
|
||||
'rahbeast/',
|
||||
'rahbeast/_config.php' => <<<PHP
|
||||
<?php
|
||||
|
||||
global \$project;
|
||||
\$project = 'rahbeast';
|
||||
|
||||
PHP
|
||||
,
|
||||
'sapphire/',
|
||||
'sapphire/_config.php',
|
||||
'sapphire/MyClass.php' => <<<PHP
|
||||
<?php
|
||||
|
||||
class MyClass extends Object {
|
||||
|
||||
}
|
||||
|
||||
class MyClass_Other extends DataObject implements Something {
|
||||
|
||||
}
|
||||
|
||||
class MyClass_Final extends DataObject implements Something, Else {
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
PHP
|
||||
,
|
||||
'sapphire/subdir/',
|
||||
'sapphire/subdir/SubDirClass.php' => <<<PHP
|
||||
<?php
|
||||
|
||||
class SubDirClass extends Something implements Else, Other {
|
||||
|
||||
}
|
||||
PHP
|
||||
,
|
||||
'sapphire/subdir/SubDirClass.php',
|
||||
'otherdir/',
|
||||
'otherdir/OtherFile.php' => <<<PHP
|
||||
<?php
|
||||
|
||||
class OtherFile extends Object {
|
||||
|
||||
}
|
||||
PHP
|
||||
,
|
||||
);
|
@ -34,56 +34,7 @@ class ManifestBuilderTest extends SapphireTest {
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
$filesystemFixture = array(
|
||||
'rahbeast/',
|
||||
'rahbeast/_config.php' => <<<PHP
|
||||
<?php
|
||||
|
||||
global \$project;
|
||||
\$project = 'rahbeast';
|
||||
|
||||
PHP
|
||||
,
|
||||
'sapphire/',
|
||||
'sapphire/_config.php',
|
||||
'sapphire/MyClass.php' => <<<PHP
|
||||
<?php
|
||||
|
||||
class MyClass extends Object {
|
||||
|
||||
}
|
||||
|
||||
class MyClass_Other extends DataObject implements Something {
|
||||
|
||||
}
|
||||
|
||||
class MyClass_Final extends DataObject implements Something, Else {
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
PHP
|
||||
,
|
||||
'sapphire/subdir/',
|
||||
'sapphire/subdir/SubDirClass.php' => <<<PHP
|
||||
<?php
|
||||
|
||||
class SubDirClass extends Something implements Else, Other {
|
||||
|
||||
}
|
||||
PHP
|
||||
,
|
||||
'sapphire/subdir/SubDirClass.php',
|
||||
'otherdir/',
|
||||
'otherdir/OtherFile.php' => <<<PHP
|
||||
<?php
|
||||
|
||||
class OtherFile extends Object {
|
||||
|
||||
}
|
||||
PHP
|
||||
,
|
||||
);
|
||||
include('tests/ManifestBuilderTest.fixture.inc');
|
||||
|
||||
// Build the fixture specified above
|
||||
$baseFolder = TEMP_FOLDER . '/manifest-test/';
|
||||
|
Loading…
Reference in New Issue
Block a user