Skip to content

Instantly share code, notes, and snippets.

@cakephp-tutorial
Created February 26, 2016 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cakephp-tutorial/d9376ef63b390e8b75d7 to your computer and use it in GitHub Desktop.
Save cakephp-tutorial/d9376ef63b390e8b75d7 to your computer and use it in GitHub Desktop.
<?php
#file /app/Test/Case/Model/ContactTest.php
App::uses('Contact', 'Model');
class ContactTest extends CakeTestCase {
public $fixtures = array('app.contact');
public function setup() {
parent::setup();
$this->Contact = ClassRegistry::init('Contact');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment