Skip to content

Commit a838737

Browse files
committed
Test installation of couchbase extension
1 parent fb77d09 commit a838737

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/tests/Install-Enable-Extensions.Tests.ps1

+9
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@
6767
$yaml.Type | Should -BeExactly 'Php'
6868
$yaml.State | Should -BeExactly 'Enabled'
6969
}
70+
It -Name 'should download and install couchbase on PHP <version>' -TestCases $testCases {
71+
param ($path, $version)
72+
Get-PhpExtension -Path $path | Where-Object { $_.Handle -eq 'couchbase' } | Should -HaveCount 0
73+
Install-PhpExtension -Extension couchbase -Path $path
74+
$couchbase = Get-PhpExtension -Path $path | Where-Object { $_.Handle -eq 'couchbase' }
75+
$couchbase | Should -HaveCount 1
76+
$couchbase.Type | Should -BeExactly 'Php'
77+
$couchbase.State | Should -BeExactly 'Enabled'
78+
}
7079
It -Name 'should handle multiple extension versions' {
7180
$phpPath = Join-Path -Path $Global:PHPMANAGER_TESTINSTALLS -ChildPath (New-Guid).Guid
7281
Install-Php -Version 7.1 -Architecture x64 -ThreadSafe $true -Path $phpPath

0 commit comments

Comments
 (0)