/** * @covers ::getCacheableArray */ public function testGetCacheableArray() { $cacheable_array = ['foo' => 'bar']; $this->decoratedFormState->getCacheableArray()->willReturn($cacheable_array)->shouldBeCalled(); $this->assertSame($cacheable_array, $this->formStateDecoratorBase->getCacheableArray()); }