/** * Method to test store(). * * @return void * * @covers Windwalker\Table\Table::store */ public function testStore() { $tableName = '#__test_table2'; $table = new Table($tableName); $table->bar = 'foo'; $table->params = array('foo' => 'bar'); $table->store(); $this->assertEquals('{"foo":"bar"}', $table->params); }
/** * Method to store a row in the database from the JTable instance properties. * If a primary key value is set the row with that primary key value will be * updated with the instance property values. If no primary key value is set * a new row will be inserted into the database with the properties from the * JTable instance. * * @param boolean $updateNulls True to update fields even if they are null. * * @return boolean True on success. */ public function store($updateNulls = false) { return parent::store($updateNulls); }