Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
/*
4
 * This file is part of the symfony package.
5
 * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
 
11
$app = 'frontend';
12
require_once dirname(__FILE__).'/../bootstrap/functional.php';
13
 
14
$t = new lime_test(3);
15
 
16
$table = Doctrine_Core::getTable('Setting');
17
 
18
// columns
19
$t->diag('columns');
20
 
21
$t->is_deeply($table->getColumnDefinition('name'), array(
22
  'type'    => 'string',
23
  'length'  => 255,
24
  'notnull' => true,
25
), 'the short "type" syntax is expanded');
26
 
27
$t->is_deeply($table->getColumnDefinition('weight'), array(
28
  'type'   => 'float',
29
  'length' => 4,
30
  'scale'  => 4,
31
), 'the short "type(length, scale)" syntax is expanded');
32
 
33
// actAs
34
$t->diag('actAs');
35
 
36
$options = $table->getTemplate('Timestampable')->getOptions();
37
$t->is($options['updated']['disabled'], true, 'the short "actAs" syntax is expanded');