Skip to content
Permalink
Browse files

Fix and remove failing View/ tests

Fix a few tests and remove/skip tests that rely on the now removed Model
class. These tests will need to be revisited soon.
  • Loading branch information...
markstory committed Dec 17, 2013
1 parent c337981 commit a1d38c82090ce4f42b905bf4a52c08f78ac342b3
@@ -1,8 +1,8 @@
<div class="users form">
<!--nocache-->
<?php echo $this->Form->create('User'); ?>
<?php echo $this->Form->create(false); ?>
<fieldset>
<legend><?php echo __('Add User'); ?></legend>
<legend><?php echo __('Add User'); ?></legend>
<?php
echo $this->Form->input('username');
echo $this->Form->input('email');
@@ -11,4 +11,4 @@
</fieldset>
<?php echo $this->Form->end('Submit'); ?>
<!--/nocache-->
</div>
</div>
@@ -496,16 +496,6 @@ public function testValueHabtmKeys() {
$result = $this->Helper->value('HelperTestTag.HelperTestTag');
$this->assertEquals(array(2, 3, 4), $result);
$this->Helper->request->data = array(
'HelperTestTag' => array(
array('id' => 3),
array('id' => 5)
)
);
$this->Helper->setEntity('HelperTestTag.HelperTestTag');
$result = $this->Helper->value('HelperTestTag.HelperTestTag');
$this->assertEquals(array(3 => 3, 5 => 5), $result);
$this->Helper->request->data = array(
'HelperTestTag' => array(
'body' => '',
@@ -180,7 +180,7 @@ protected function _introspectModel($model, $key, $field = null) {
}
if ($key === 'key') {
return $this->fieldset[$model]['key'] = $object->primaryKey;
return $this->fieldset[$model]['key'] = $object->primaryKey();
}
if ($key === 'fields') {

0 comments on commit a1d38c8

Please sign in to comment.
You can’t perform that action at this time.