/** * Method to test changed(). * * @return void * * @covers Windwalker\Relation\Handler\AbstractRelationHandler::changed */ public function testChanged() { $itemTable = new StubTableRose(); $itemTable->foo_id = 'Foo'; $itemTable->bar_id = 'Bar'; $parent = $this->instance->getParent(); $parent->foo = 'Foo'; $parent->bar = 'Bar'; $this->assertFalse($this->instance->changed($itemTable)); $parent->foo = 'Fo'; $parent->bar = 'Ba'; $this->assertTrue($this->instance->changed($itemTable)); }