Thursday, August 25, 2016

Yii2 GridPageSize

Found a gem today Here's a snippet ...
<?= GridPageSize::widget(['pjaxId'=>'myAwesomeGridViewContainer']) ?>
<?php
Pjax::begin([
'id'=>'myAwesomeGridViewContainer',
])
?>
<?=
GridView::widget([
'id'=>'theGrid',
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'username',
'password',
],
]);
?>
<?php Pjax::end() ?>
What this does is it allows user to choose number of records to show in a gridview.

Tuesday, August 23, 2016

Functional Testing vs Acceptance Testing


Notes for me by me:


Its safe to say that
Functional testing = headless acceptance test , the gist here is to test quickly .
Acceptance Test = involves multiple real web browser.