public function testSetExpanded() { $expanded = true; $this->widgetState->expects($this->once())->method('setExpanded')->with($expanded); $this->widgetModel->setExpanded($expanded); }