Skip to content

Instantly share code, notes, and snippets.

@tareko
Created June 9, 2012 13:05
Show Gist options
  • Select an option

  • Save tareko/2900912 to your computer and use it in GitHub Desktop.

Select an option

Save tareko/2900912 to your computer and use it in GitHub Desktop.
compare function testing
public function testCompare() {
$Trades = $this->generate('Trades', array(
'methods' => array(
'_requestAllowed'
),
));
$Trades->expects($this->any())
->method('_requestAllowed')
->will($this->returnValue(true));
$result = $this->testAction('/trades/compare');
$this->assertContains('itemName: \'data[User]', $result);
$this->assertContains('<div class="input select"><select name="data[Calendar][id]" required="1" id="CalendarId">', $result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment