示例#1
0
	/**
	 * Test for JGrid::setActiveRow method.
	 *
	 * @return void
	 */
	public function testSetActiveRow()
	{
		$table = new JGridInspector;
		$table->rows = array(array('_row' => array('class' => 'test1')),
			array('_row' => array('class' => 'test2')),
			array('_row' => array('class' => 'test3')));
		$table->activeRow = 2;
		$table->setActiveRow(1);
		$this->assertThat(
			$table->activeRow,
			$this->equalTo(1)
		);
	}