Skip to content
This repository has been archived by the owner on May 8, 2019. It is now read-only.

Commit

Permalink
rollback commenting out the incomplete tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelalber committed Sep 9, 2011
1 parent 461c37b commit 0543ea1
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 21 deletions.
Expand Up @@ -55,9 +55,9 @@ public function testObjectInstance()
* @return null
*
*/
/* public function testRecord()
public function testRecord()
{
$this->markTestIncomplete('This test has not been implemented yet.');
}

}*/

}
}
8 changes: 4 additions & 4 deletions application/modules/auth/tests/models/AccountTest.php
Expand Up @@ -172,9 +172,9 @@ public function testAuthenticateNoDataException()
* @return null
*
*/
/* public function testDelete()
public function testDelete()
{
$this->markTestIncomplete('This test has not been implemented yet.');
}

}*/

}
}
48 changes: 42 additions & 6 deletions application/modules/auth/tests/views/password/forgotTest.php
Expand Up @@ -82,11 +82,30 @@ public function testInvalidEmail()
* @return null
*
*/
/* public function testSendPassword()
public function testSendPassword()
{
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
return;

$email = 'test@test.com';
$this->request->setMethod('POST')
->setPost(array(
'email' => $email
));

}*/
$this->dispatch('/auth/password/forgot');

$this->assertRedirectTo('/index/index');
$this->assertModule('default');
$this->assertController('index');
$this->assertAction('index');

$this->assertQueryCountMin('div.error', 1);
$this->assertQueryContentContains('div.error', 'A new password has been sent to ' . $email);
}

/**
* Test unregistered
*
Expand All @@ -95,11 +114,28 @@ public function testInvalidEmail()
* @return null
*
*/
/* public function testUnregisteredEmail()
public function testUnregisteredEmail()
{
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
return;

$email = 'abcdef@test.com';
$this->request->setMethod('POST')
->setPost(array(
'email' => $email
));

}*/

$this->dispatch('/auth/password/forgot');
#$this->assertModule('auth');
$this->assertController('password');
$this->assertAction('forgot');

$this->assertQueryCountMin('div.error', 1);
$this->assertQueryContentContains('div.error', 'Sending failed');
}

/**
* Test unregistered
*
Expand All @@ -125,4 +161,4 @@ public function testEmptyEmail()
$this->assertQueryContentContains('form.box dl.zend_form dd#email-element ul.errors li', 'Value is required and can\'t be empty');
}

}
}
19 changes: 16 additions & 3 deletions application/modules/auth/tests/views/register/indexTest.php
Expand Up @@ -52,9 +52,22 @@ public function testRequiredFieldMessages()
$this->assertQueryCount('ul.errors', 4);
}

/* public function testSuccessfulRegistration()
public function testSuccessfulRegistration()
{
$this->markTestIncomplete('This test has not been implemented yet.');
/*
$this->request->setMethod('POST')
->setPost(array(
'name' => 'test',
'email' => 'test@email.com',
'password' => 'test',
));
}*/
$this->dispatch('/auth/register');
$this->assertModule('auth');
$this->assertController('register');
$this->assertAction('index');
*/
}

}
}
8 changes: 4 additions & 4 deletions tests/library/custom/auth/validate/NotIdenticalTest.php
Expand Up @@ -53,8 +53,8 @@ public function testObjectInstance() {
* @return null
*
*/
/* public function testNotIdentical() {
}*/
public function testNotIdentical() {
$this->markTestIncomplete('This test has not been implemented yet.');
}

}
}

0 comments on commit 0543ea1

Please sign in to comment.