Skip to content

Commit 7e6c9f8

Browse files
committed
Add support for php8.0 with RHEL 8
1 parent 0bb5ca9 commit 7e6c9f8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/classes/mod/php_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@
111111
elsif facts[:os]['release']['major'].to_i == 8
112112
it { is_expected.to contain_apache__mod('php7') }
113113
it { is_expected.to contain_file('php7.load').with(content: "LoadModule php7_module modules/libphp7.so\n") }
114+
115+
context 'with php8.0' do
116+
let :params do
117+
{ php_version: '8.0' }
118+
end
119+
120+
it { is_expected.to contain_apache__mod('php') }
121+
it { is_expected.to contain_file('php.load').with(content: "LoadModule php_module modules/libphp.so\n") }
122+
end
114123
elsif facts[:os]['release']['major'].to_i >= 9
115124
it { is_expected.to contain_apache__mod('php') }
116125
it { is_expected.to contain_file('php.load').with(content: "LoadModule php_module modules/libphp.so\n") }

0 commit comments

Comments
 (0)