public function testSetProcessIndexEvents() { $property = new \ReflectionProperty($this->item, '_processIndexEvents'); $property->setAccessible(true); $this->assertTrue($property->getValue($this->item)); $this->assertSame($this->item, $this->item->setProcessIndexEvents(false)); $this->assertFalse($property->getValue($this->item)); $this->assertSame($this->item, $this->item->setProcessIndexEvents()); $this->assertTrue($property->getValue($this->item)); }