Permalink
Browse files

keine acceptance tests f�r travis

  • Loading branch information...
1 parent 232921c commit 3875e976a0b5db589e85859fff84e3c90811d289 @pscheit pscheit committed Apr 10, 2012
Showing with 14 additions and 9 deletions.
  1. BIN bin/psc-cms.phar.gz
  2. +14 −9 tests/CMS/ProjectsFactoryTest.php
View
Binary file not shown.
@@ -10,11 +10,12 @@ public function testFactory() {
$factory = PSC::getProjectsFactory();
$cms = $factory->getProject('psc-cms');
- $tiptoi = $factory->getProject('tiptoi');
+
$this->assertInstanceOf('Psc\Project',$cms); // extends Psc\CMS\Project
if (PSC::getProject()->getHost() == 'psc-laptop' || PSC::getProject()->getHost() == 'psc-desktop') {
+ $tiptoi = $factory->getProject('tiptoi');
$this->assertEquals('D:\www\psc-cms\Umsetzung\\',(string) $cms->getRoot());
$this->assertEquals('D:\www\psc-cms\Umsetzung\base\src\\',(string) $cms->getSrc());
@@ -33,7 +34,7 @@ public function testFactory() {
$this->assertEquals('D:\www\RvtiptoiCMS\Umsetzung\base\htdocs\\',(string) $tiptoi->getPath(PSC::PATH_HTDOCS));
} else {
- $this->markTestSkipped('kein Switch für Host '.PSC::getHost().' angegeben');
+ $this->markTestSkipped('kein Switch für Host '.PSC::getProject()->getHost().' angegeben');
}
}
@@ -55,15 +56,19 @@ public function testSetGetProjectsPath() {
}
public function testProjectConfigLoading() {
- $factory = PSC::getProjectsFactory();
- $cms = $factory->getProject('psc-cms');
- $tiptoi = $factory->getProject('tiptoi');
+ if (PSC::getProject()->getHost() == 'psc-laptop' || PSC::getProject()->getHost() == 'psc-desktop') {
+ $factory = PSC::getProjectsFactory();
+ $cms = $factory->getProject('psc-cms');
+ $tiptoi = $factory->getProject('tiptoi');
- $this->assertEquals('psc-cms',$cms->getName());
- $this->assertEquals('tiptoi',$tiptoi->getName());
+ $this->assertEquals('psc-cms',$cms->getName());
+ $this->assertEquals('tiptoi',$tiptoi->getName());
- $this->assertEquals('valueinpsc-cms',$cms->getConfiguration()->get('fixture.config.variable'));
- $this->assertEquals('valueintiptoi',$tiptoi->getConfiguration()->get('fixture.config.variable'));
+ $this->assertEquals('valueinpsc-cms',$cms->getConfiguration()->get('fixture.config.variable'));
+ $this->assertEquals('valueintiptoi',$tiptoi->getConfiguration()->get('fixture.config.variable'));
+ } else {
+ $this->markTestSkipped('kein Switch für Host '.PSC::getProject()->getHost().' angegeben');
+ }
}
}
?>

0 comments on commit 3875e97

Please sign in to comment.