@@ -26,108 +26,4 @@ public function it_gets_database_config_from_container(): void
26
26
self ::assertArrayHasKey ('databases ' , $ config ->toArray ());
27
27
self ::assertArrayHasKey ('drivers ' , $ config ->toArray ());
28
28
}
29
-
30
- //
31
- // /**
32
- // * @test
33
- // *
34
- // * @throws ContainerExceptionInterface
35
- // * @throws NotFoundExceptionInterface
36
- // */
37
- // public function it_gets_database_manager_instance_from_container(): void
38
- // {
39
- // $manager1 = $this->app->get(DatabaseProviderInterface::class);
40
- // self::assertInstanceOf(DatabaseProviderInterface::class, $manager1);
41
- //
42
- // $manager2 = $this->app->get(DatabaseManager::class);
43
- // self::assertInstanceOf(DatabaseManager::class, $manager2);
44
- //
45
- // $database = $this->app->get(DatabaseInterface::class);
46
- // self::assertInstanceOf(DatabaseInterface::class, $database);
47
- //
48
- // self::assertEquals($manager1, $manager2);
49
- // self::assertEquals($manager2->database(), $database);
50
- // }
51
- //
52
- // /**
53
- // * @test
54
- // *
55
- // * @throws ContainerExceptionInterface
56
- // * @throws NotFoundExceptionInterface
57
- // */
58
- // public function it_gets_entity_manager_instance_from_container(): void
59
- // {
60
- // $manager = $this->app->get(EntityManagerInterface::class);
61
- // self::assertInstanceOf(EntityManagerInterface::class, $manager);
62
- // }
63
- //
64
- // /**
65
- // * @test
66
- // *
67
- // * @throws ContainerExceptionInterface
68
- // * @throws NotFoundExceptionInterface
69
- // */
70
- // public function it_gets_database_schema_from_container(): void
71
- // {
72
- // $this::assertInstanceOf(SchemaInterface::class, $this->app->get(SchemaInterface::class));
73
- // $this::assertInstanceOf(Schema::class, $this->app->get(SchemaInterface::class));
74
- // }
75
- //
76
- // /**
77
- // * @test
78
- // *
79
- // * @throws ContainerExceptionInterface
80
- // * @throws NotFoundExceptionInterface
81
- // */
82
- // public function it_gets_orm_from_container(): void
83
- // {
84
- // $this::assertInstanceOf(ORMInterface::class, $this->app->get(ORMInterface::class));
85
- // $this::assertInstanceOf(ORM::class, $this->app->get(ORMInterface::class));
86
- // }
87
- //
88
- // /**
89
- // * @test
90
- // *
91
- // * @throws ContainerExceptionInterface
92
- // * @throws NotFoundExceptionInterface
93
- // */
94
- // public function it_gets_migrator_instance_from_container(): void
95
- // {
96
- // /** @var MigrationConfig $config */
97
- // $config = $this->app->get(MigrationConfig::class);
98
- //
99
- // self::assertEquals(config('cycle.migrations'), $config->toArray());
100
- //
101
- // $migrator = $this->app->get(Migrator::class);
102
- // self::assertInstanceOf(Migrator::class, $migrator);
103
- // }
104
- //
105
- // /**
106
- // * @test
107
- // *
108
- // * @throws ContainerExceptionInterface
109
- // * @throws NotFoundExceptionInterface
110
- // */
111
- // public function it_gets_tokenizer_from_container(): void
112
- // {
113
- // $this::assertInstanceOf(TokenizerConfig::class, $this->app->get(TokenizerConfig::class));
114
- //
115
- // $tokenizer = $this->app->get(Tokenizer::class);
116
- // self::assertInstanceOf(Tokenizer::class, $tokenizer);
117
- // }
118
- //
119
- // /**
120
- // * @test
121
- // *
122
- // * @throws ContainerExceptionInterface
123
- // * @throws NotFoundExceptionInterface
124
- // */
125
- // public function it_gets_class_locator_instance_from_container(): void
126
- // {
127
- // $classLocator = $this->app->get(ClassesInterface::class);
128
- // self::assertInstanceOf(ClassesInterface::class, $classLocator);
129
- //
130
- // $classLocator = $this->app->get(ClassLocator::class);
131
- // self::assertInstanceOf(ClassesInterface::class, $classLocator);
132
- // }
133
29
}
0 commit comments