_setProperty('sorting', 10); self::assertSame(10, $subject->getSorting()); } /** * @test */ public function canBeVisible(): void { $subject = new Category( null, 10, 'Title', false ); self::assertFalse($subject->_getProperty('hidden')); } /** * @test */ public function canHide(): void { $subject = new Category( null, 10, 'Title', true ); self::assertTrue($subject->_getProperty('hidden')); } }