You are here

public function ExportDataTest::testDeletePage in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/aklump/loft_data_grids/tests/phpunit/ExportDataTest.php \AKlump\LoftDataGrids\ExportDataTest::testDeletePage()

File

vendor/aklump/loft_data_grids/tests/ExportDataTest.php, line 194
Tests for the ExportData class

Class

ExportDataTest

Namespace

AKlump\LoftDataGrids

Code

public function testDeletePage() {
  $obj = $this->obj;
  $return = $obj
    ->deletePage(0);
  $this
    ->assertInstanceOf('AKlump\\LoftDataGrids\\ExportDataInterface', $return);
  $return = $return
    ->getAllPageIds();
  $this
    ->assertCount(1, $return);
  $return = $obj
    ->setPage(1)
    ->setPointer(0)
    ->getCurrent();
  $this
    ->assertSame('Black', $return['Color']);
  $this
    ->assertSame('Subaru', $return['Make']);
}