2011-05-24 13:02:45 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Short description for file.
|
|
|
|
*
|
2013-05-29 18:19:14 +00:00
|
|
|
* PHP 5
|
2011-05-24 13:02:45 +00:00
|
|
|
*
|
2012-04-27 02:49:18 +00:00
|
|
|
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
2013-02-08 11:59:49 +00:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2011-05-24 13:02:45 +00:00
|
|
|
*
|
|
|
|
* Licensed under The Open Group Test Suite License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2013-02-08 11:59:49 +00:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2012-04-27 02:49:18 +00:00
|
|
|
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
2013-05-29 13:00:18 +00:00
|
|
|
* @package Cake.Test.Fixture
|
2011-05-24 13:02:45 +00:00
|
|
|
* @since CakePHP(tm) v 2.1
|
2013-05-30 22:11:14 +00:00
|
|
|
* @license http://www.opensource.org/licenses/opengroup.php Open Group Test Suite License
|
2011-05-24 13:02:45 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Short description for class.
|
|
|
|
*
|
2013-05-29 13:00:18 +00:00
|
|
|
* @package Cake.Test.Fixture
|
2011-05-24 13:02:45 +00:00
|
|
|
*/
|
|
|
|
class DomainsSiteFixture extends CakeTestFixture {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* name property
|
|
|
|
*
|
|
|
|
* @var string 'Domain'
|
|
|
|
* @access public
|
|
|
|
*/
|
2012-02-23 13:45:15 +00:00
|
|
|
public $name = 'DomainsSite';
|
2011-05-24 13:02:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* fields property
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
* @access public
|
|
|
|
*/
|
2012-02-23 13:45:15 +00:00
|
|
|
public $fields = array(
|
2011-05-24 13:02:45 +00:00
|
|
|
'id' => array('type' => 'integer', 'key' => 'primary'),
|
|
|
|
'domain_id' => array('type' => 'integer', 'null' => false),
|
|
|
|
'site_id' => array('type' => 'integer', 'null' => false),
|
|
|
|
'active' => array('type' => 'boolean', 'null' => false, 'default' => false),
|
|
|
|
'created' => 'datetime',
|
|
|
|
'updated' => 'datetime',
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* records property
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
* @access public
|
|
|
|
*/
|
2012-02-23 13:45:15 +00:00
|
|
|
public $records = array(
|
2011-05-24 13:02:45 +00:00
|
|
|
array('site_id' => 1, 'domain_id' => 1, 'active' => true, 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
|
|
|
|
array('site_id' => 1, 'domain_id' => 2, 'active' => true, 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),
|
|
|
|
array('site_id' => 2, 'domain_id' => 4, 'active' => true, 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'),
|
|
|
|
array('site_id' => 2, 'domain_id' => 5, 'active' => true, 'created' => '2007-03-17 01:18:23', 'updated' => '2007-03-17 01:20:31'),
|
|
|
|
array('site_id' => 3, 'domain_id' => 6, 'active' => true, 'created' => '2001-02-03 00:01:02', 'updated' => '2007-03-17 01:22:31'),
|
|
|
|
array('site_id' => 3, 'domain_id' => 7, 'active' => false, 'created' => '2001-02-03 00:01:02', 'updated' => '2007-03-17 01:22:31'),
|
|
|
|
);
|
|
|
|
}
|