Skip to content

Commit

Permalink
Updated unit test for ToggleStatus to test for new html structure; Cl…
Browse files Browse the repository at this point in the history
…oses luyadev#318
  • Loading branch information
TheMaaarc authored and slowfox089 committed Dec 10, 2020
1 parent 8c4bd93 commit 48787cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/admin/ngrest/plugins/ToggleStatusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public function testScheduling()
$this->assertSame('<luya-schedule value="model" title="test" model-class="luya\admin\models\User" attribute-name="test" attribute-values=\'[{"label":"status_false","value":0},{"label":"status_true","value":1}]\' primary-key-value="getRowPrimaryValue(item)"></luya-schedule>', $plugin->renderList(1, 'model'));

$this->assertSame([
0 => '<div class="crud-loader-tag"><luya-schedule value="model" title="test" model-class="luya\admin\models\User" attribute-name="test" attribute-values=\'[{"label":"status_false","value":0},{"label":"status_true","value":1}]\' primary-key-value="getRowPrimaryValue(data.update)" only-icon="1"></luya-schedule></div>',
0 => '<div class="crud-loader-tag crud-loader-tag-for-checkbox"><luya-schedule value="model" title="test" model-class="luya\admin\models\User" attribute-name="test" attribute-values=\'[{"label":"status_false","value":0},{"label":"status_true","value":1}]\' primary-key-value="getRowPrimaryValue(data.update)" only-icon="1"></luya-schedule></div>',
1 => '<zaa-checkbox options="{&quot;true-value&quot;:1,&quot;false-value&quot;:0}" initvalue="0" fieldid="id" model="model" label="test" fieldname="test" i18n=""></zaa-checkbox>'
], $plugin->renderUpdate('id', 'model'));
}
}
}

0 comments on commit 48787cc

Please sign in to comment.