Skip to content

Commit

Permalink
add tests for php5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Mar 3, 2018
1 parent 89a2c1a commit 6ca17a4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions spec/acceptance/php56_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
require 'spec_helper_acceptance'

describe 'with specific php version' do
it 'works with 5.6' do
pp = <<-EOS
class { 'php::globals':
php_version => '5.6',
}
-> class { 'php':
ensure => 'present',
manage_repos => true,
fpm => true,
dev => true,
composer => true,
pear => true,
phpunit => false,
}
EOS
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

case default[:platform]
when %r{16.04}
describe package('php5.6-fpm') do
it { is_expected.to be_installed }
end
when %r{14.04}
describe package('php5.6-fpm') do
it { is_expected.to be_installed }
end
end
end

0 comments on commit 6ca17a4

Please sign in to comment.