/** * Test setting instances into the factory/registry. * * @return void */ public function testSet() { $instance = $this->getMock('Cake\\Database\\Type'); Type::set('random', $instance); $this->assertSame($instance, Type::build('random')); }