Skip to content

Commit fb0bccc

Browse files
committed
Get cakephp working
1 parent 6e3d03f commit fb0bccc

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

fixtures/cake/.bp-config/options.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"COMPOSER_INSTALL_OPTIONS": ["--no-interaction"],
44
"WEBDIR": "webroot",
55
"LIBDIR": "library",
6-
"PHP_EXTENSIONS": ["pdo", "pdo_sqlite", "mcrypt"]
6+
"PHP_EXTENSIONS": ["pdo", "pdo_sqlite", "mcrypt", "pdo_mysql"]
77
}

src/php/integration/app_frameworks_test.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,18 @@ func testAppFrameworks(platform switchblade.Platform, fixtures string) func(*tes
3131
Expect(platform.Delete.Execute(name)).To(Succeed())
3232
})
3333

34-
// TODO
35-
context.Pend("CakePHP", func() {
34+
context("CakePHP", func() {
3635
it("builds and runs the app", func() {
37-
deployment, logs, err := platform.Deploy.
36+
deployment, _, err := platform.Deploy.
3837
WithEnv(map[string]string{
3938
"COMPOSER_GITHUB_OAUTH_TOKEN": os.Getenv("COMPOSER_GITHUB_OAUTH_TOKEN"),
4039
}).
4140
WithStartCommand(`/app/bin/cake migrations migrate && /app/.bp/bin/start`).
4241
Execute(name, filepath.Join(fixtures, "cake"))
4342
Expect(err).NotTo(HaveOccurred())
4443

45-
err = os.WriteFile("/tmp/cakebuild", []byte(logs.String()), 0644)
46-
Expect(err).NotTo(HaveOccurred())
47-
4844
Eventually(deployment).Should(Serve(SatisfyAll(
49-
ContainSubstring("CakePHP"),
45+
ContainSubstring("CakePHP: the rapid development PHP framework"),
5046
Not(ContainSubstring("Missing Database Table")),
5147
)))
5248

0 commit comments

Comments
 (0)