Skip to content

Commit

Permalink
remove testTheRest
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Jan 2, 2018
1 parent fd042b3 commit 7ec7f5f
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions tests/controllers/CreateSurveyTest.php
Expand Up @@ -303,6 +303,7 @@ public function testRecorderResponsevalue(){
* @throws \Exception
*/
public function testDeleteSurvey(){

self::openSurveySummary();

// delete survey
Expand All @@ -311,27 +312,18 @@ public function testDeleteSurvey(){
self::findAndClick(WebDriverBy::cssSelector('input[type="submit"]'),10);

// validate
$sids = \Yii::app()->getDb()->createCommand()
->select('sid')
->from(\Survey::model()->tableName())
->where('sid=:sid', array(':sid'=>self::$survey->sid))
->queryAll();
$this->assertCount(0, $sids);

}


/**
* @throws NoSuchElementException
* @throws TimeOutException
* @throws \CException
* @throws \Exception
*/
public function testTheRest(){

return;


// Make sure the survey can't be found.
$query = 'SELECT sid FROM {{surveys}} WHERE sid = ' . $sid;
$sids = $dbo->createCommand()->queryAll();
$this->assertCount(0, $sids);

}

private function openSurveySummary(){
$url = self::getUrl(['route'=>'survey/sa/view&surveyid='.self::$survey->primaryKey]);
Expand Down

0 comments on commit 7ec7f5f

Please sign in to comment.