Inheritance: extends PHPUnit_Framework_TestCase
Example #1
0
 /**
  * Get a singleton instance of test user
  *
  * @param  string|null $accessToken
  * @return \OldTimeGuitarGuy\Plaid\Contracts\User
  */
 protected function user($accessToken = null)
 {
     if (!is_null($accessToken) && $accessToken !== 'test_wells') {
         return new TestUser($accessToken);
     }
     if (isset(self::$user)) {
         return self::$user;
     }
     return self::$user = new TestUser('test_wells');
 }
Example #2
0
<?php

require_once '../de/appwerk/radio/test/ServiceTest.php';
$st = new ServiceTest();
$st->testSnapshotUpload();
exit(1);
 /**
  * Test set up
  */
 public function setUp()
 {
     parent::setUp();
     $this->service = new SearchMediaService($this->appName, $this->environment, $this->logger);
 }
Example #4
0
<?php

require_once '../de/appwerk/radio/test/ServiceTest.php';
$st = new ServiceTest();
$st->testRecUpload();
exit(1);
Example #5
0
<?php

require_once '../de/appwerk/radio/test/RootDBUtilsTest.php';
$u = new RootDBUtilsTest();
// $u->setupCommentDB();
// $u->setupTrackingDB();
require_once '../de/appwerk/radio/test/TrackingUtilsTest.php';
$t = new TrackingUtilsTest();
$t->addTrack();
require_once '../de/appwerk/radio/test/ServiceTest.php';
$s = new ServiceTest();
$s->addTrack();
$s->addTrackJ();
exit(1);
 /**
  * Test set up
  */
 public function setUp()
 {
     parent::setUp();
     $this->configParser = $this->getMockBuilder('\\OCA\\GalleryPlus\\Service\\ConfigParser')->disableOriginalConstructor()->getMock();
     $this->service = new ConfigService($this->appName, $this->environment, $this->configParser, $this->logger);
 }
Example #7
0
<?php

require_once '../de/appwerk/radio/test/KommentariUtilsTest.php';
require_once '../de/appwerk/radio/test/ServiceTest.php';
$t = new KommentariUtilsTest();
$t->addComment();
$t->deleteComment();
$t->releaseComment();
$t->listRecComments();
$t->listImgComments();
$t->listMsgComments();
$t->listMsgCommentsByRadioAndTypeId();
$t->addMsgComment();
$s = new ServiceTest();
$s->addMsgComment();
$t->placeTmpLink();
exit(1);
Example #8
0
<?php

require_once '../de/appwerk/radio/test/ServiceTest.php';
$st = new ServiceTest();
/*
$st->auth();
$st->saveLayout();
$st->saveLayoutJSON();
$st->addLayout();
$st->addRole();

$st->updateTenant();
$st->addTenant();
$st->addTenant();
$st->addTenant();
$st->addTenant();
$st->addTenant();
$st->removeTenant();

$st->loadRadioScreen();
*/
$st->iLike();
exit(1);