18 $this->assertSame( [], $slots->getSlots() );
21 $slots->setSlot( $slotA );
22 $this->assertTrue( $slots->hasSlot(
'some' ) );
23 $this->assertSame( $slotA, $slots->getSlot(
'some' ) );
24 $this->assertSame( [
'some' => $slotA ], $slots->getSlots() );
27 $slots->setSlot( $slotB );
28 $this->assertTrue( $slots->hasSlot(
'other' ) );
29 $this->assertSame( $slotB, $slots->getSlot(
'other' ) );
30 $this->assertSame( [
'some' => $slotA,
'other' => $slotB ], $slots->getSlots() );
36 $this->assertSame( [], $slots->getSlots() );
39 $slots->setSlot( $slotA );
40 $this->assertSame( $slotA, $slots->getSlot(
'main' ) );
41 $this->assertSame( [
'main' => $slotA ], $slots->getSlots() );
44 $slots->setSlot( $slotB );
45 $this->assertSame( $slotB, $slots->getSlot(
'main' ) );
46 $this->assertSame( [
'main' => $slotB ], $slots->getSlots() );
52 $this->assertSame( [], $slots->getSlots() );
55 $slots->setSlot( $slotA );
56 $this->assertSame( $slotA, $slots->getSlot(
'main' ) );
57 $this->assertSame( [
'main' => $slotA ], $slots->getSlots() );
60 $slots->setContent(
'main', $newContent );
61 $this->assertSame( $newContent, $slots->getContent(
'main' ) );