@@ -7348,73 +7348,4 @@ public function testRequiredAttribute() {
7348
7348
$ this ->assertContains ('required ' , $ result );
7349
7349
}
7350
7350
7351
- /**
7352
- * Tests that the 'on' key validates as expected on update
7353
- *
7354
- * @return void
7355
- */
7356
- public function testRequiredOnUpdate () {
7357
- $ this ->markTestIncomplete ('Need to revisit once models work again. ' );
7358
- $ this ->Form ->request ->data ['Contact ' ]['id ' ] = 1 ;
7359
- $ this ->Form ->create ('Contact ' );
7360
-
7361
- $ result = $ this ->Form ->input ('Contact.imrequiredonupdate ' );
7362
- $ expected = array (
7363
- 'div ' => array ('class ' => 'input text required ' ),
7364
- 'label ' => array ('for ' => 'ContactImrequiredonupdate ' ),
7365
- 'Imrequiredonupdate ' ,
7366
- '/label ' ,
7367
- 'input ' => array (
7368
- 'type ' => 'text ' , 'name ' => 'Contact[imrequiredonupdate] ' ,
7369
- 'id ' => 'ContactImrequiredonupdate ' ,
7370
- 'required ' => 'required '
7371
- ),
7372
- '/div '
7373
- );
7374
- $ this ->assertTags ($ result , $ expected );
7375
- $ result = $ this ->Form ->input ('Contact.imrequiredoncreate ' );
7376
- $ expected = array (
7377
- 'div ' => array ('class ' => 'input text ' ),
7378
- 'label ' => array ('for ' => 'ContactImrequiredoncreate ' ),
7379
- 'Imrequiredoncreate ' ,
7380
- '/label ' ,
7381
- 'input ' => array (
7382
- 'type ' => 'text ' , 'name ' => 'Contact[imrequiredoncreate] ' ,
7383
- 'id ' => 'ContactImrequiredoncreate '
7384
- ),
7385
- '/div '
7386
- );
7387
- $ this ->assertTags ($ result , $ expected );
7388
-
7389
- $ result = $ this ->Form ->input ('Contact.imrequiredonboth ' );
7390
- $ expected = array (
7391
- 'div ' => array ('class ' => 'input text required ' ),
7392
- 'label ' => array ('for ' => 'ContactImrequiredonboth ' ),
7393
- 'Imrequiredonboth ' ,
7394
- '/label ' ,
7395
- 'input ' => array (
7396
- 'type ' => 'text ' , 'name ' => 'Contact[imrequiredonboth] ' ,
7397
- 'id ' => 'ContactImrequiredonboth ' ,
7398
- 'required ' => 'required '
7399
- ),
7400
- '/div '
7401
- );
7402
- $ this ->assertTags ($ result , $ expected );
7403
-
7404
- $ result = $ this ->Form ->input ('Contact.imrequired ' );
7405
- $ expected = array (
7406
- 'div ' => array ('class ' => 'input text required ' ),
7407
- 'label ' => array ('for ' => 'ContactImrequired ' ),
7408
- 'Imrequired ' ,
7409
- '/label ' ,
7410
- 'input ' => array (
7411
- 'type ' => 'text ' , 'name ' => 'Contact[imrequired] ' ,
7412
- 'id ' => 'ContactImrequired ' ,
7413
- 'required ' => 'required '
7414
- ),
7415
- '/div '
7416
- );
7417
- $ this ->assertTags ($ result , $ expected );
7418
- }
7419
-
7420
7351
}
0 commit comments